@@ -1563,7 +1563,7 @@ type Foo = Trait; // error: the value of the associated type `Bar` (from
1563
1563
// the trait `Trait`) must be specified
1564
1564
```
1565
1565
1566
- Please verify you specified all associated types of the trait or that you
1566
+ Please verify you specified all associated types of the trait and that you
1567
1567
used the right trait. Example:
1568
1568
1569
1569
```
@@ -1869,7 +1869,7 @@ type Foo = Trait<F=i32>; // error: associated type `F` not found for
1869
1869
// `Trait`
1870
1870
```
1871
1871
1872
- Please verify you used the good trait or you didn't mispelled the
1872
+ Please verify you used the right trait or you didn't misspell the
1873
1873
associated type name. Example:
1874
1874
1875
1875
```
@@ -1881,6 +1881,22 @@ type Foo = Trait<Bar=i32>; // ok!
1881
1881
```
1882
1882
"## ,
1883
1883
1884
+ E0232 : r##"
1885
+ The attribute must have a value. Erroneous code example:
1886
+
1887
+ ```
1888
+ #[rustc_on_unimplemented] // error: this attribute must have a value
1889
+ trait Bar {}
1890
+ ```
1891
+
1892
+ Please supply the missing value of the attribute. Example:
1893
+
1894
+ ```
1895
+ #[rustc_on_unimplemented = "foo"] // ok!
1896
+ trait Bar {}
1897
+ ```
1898
+ "## ,
1899
+
1884
1900
E0243 : r##"
1885
1901
This error indicates that not enough type parameters were found in a type or
1886
1902
trait.
@@ -2153,7 +2169,6 @@ register_diagnostics! {
2153
2169
E0229 , // associated type bindings are not allowed here
2154
2170
E0230 , // there is no type parameter on trait
2155
2171
E0231 , // only named substitution parameters are allowed
2156
- E0232 , // this attribute must have a value
2157
2172
E0233 ,
2158
2173
E0234 ,
2159
2174
E0235 , // structure constructor specifies a structure of type but
0 commit comments