@@ -1551,7 +1551,8 @@ impl Foo for Bar {
1551
1551
"## ,
1552
1552
1553
1553
E0191 : r##"
1554
- You have to specify all the associated types. Erroneous code example:
1554
+ Trait objects need to have all associated types specified. Erroneous code
1555
+ example:
1555
1556
1556
1557
```
1557
1558
trait Trait {
@@ -1563,7 +1564,7 @@ type Foo = Trait; // error: the value of the associated type `Bar` (from
1563
1564
```
1564
1565
1565
1566
Please verify you specified all associated types of the trait or that you
1566
- used the good trait. Example:
1567
+ used the right trait. Example:
1567
1568
1568
1569
```
1569
1570
trait Trait {
@@ -1855,6 +1856,31 @@ extern "rust-intrinsic" {
1855
1856
```
1856
1857
"## ,
1857
1858
1859
+ E0220 : r##"
1860
+ You used an associated type which isn't defined in the trait.
1861
+ Erroneous code example:
1862
+
1863
+ ```
1864
+ trait Trait {
1865
+ type Bar;
1866
+ }
1867
+
1868
+ type Foo = Trait<F=i32>; // error: associated type `F` not found for
1869
+ // `Trait`
1870
+ ```
1871
+
1872
+ Please verify you used the good trait or you didn't mispelled the
1873
+ associated type name. Example:
1874
+
1875
+ ```
1876
+ trait Trait {
1877
+ type Bar;
1878
+ }
1879
+
1880
+ type Foo = Trait<Bar=i32>; // ok!
1881
+ ```
1882
+ "## ,
1883
+
1858
1884
E0243 : r##"
1859
1885
This error indicates that not enough type parameters were found in a type or
1860
1886
trait.
@@ -2115,7 +2141,6 @@ register_diagnostics! {
2115
2141
E0217 , // ambiguous associated type, defined in multiple supertraits
2116
2142
E0218 , // no associated type defined
2117
2143
E0219 , // associated type defined in higher-ranked supertrait
2118
- E0220 , // associated type not found for type parameter
2119
2144
E0221 , // ambiguous associated type in bounds
2120
2145
//E0222, // Error code E0045 (variadic function must have C calling
2121
2146
// convention) duplicate
0 commit comments