Add E0232 error explanation
This commit is contained in:
parent
c01c1fd715
commit
6f01aa0fc8
1 changed files with 18 additions and 3 deletions
|
@ -1563,7 +1563,7 @@ type Foo = Trait; // error: the value of the associated type `Bar` (from
|
||||||
// the trait `Trait`) must be specified
|
// the trait `Trait`) must be specified
|
||||||
```
|
```
|
||||||
|
|
||||||
Please verify you specified all associated types of the trait or that you
|
Please verify you specified all associated types of the trait and that you
|
||||||
used the right trait. Example:
|
used the right trait. Example:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
@ -1869,7 +1869,7 @@ type Foo = Trait<F=i32>; // error: associated type `F` not found for
|
||||||
// `Trait`
|
// `Trait`
|
||||||
```
|
```
|
||||||
|
|
||||||
Please verify you used the good trait or you didn't mispelled the
|
Please verify you used the right trait or you didn't misspell the
|
||||||
associated type name. Example:
|
associated type name. Example:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
@ -1881,6 +1881,22 @@ type Foo = Trait<Bar=i32>; // ok!
|
||||||
```
|
```
|
||||||
"##,
|
"##,
|
||||||
|
|
||||||
|
E0232: r##"
|
||||||
|
The attribute must have a value. Erroneous code example:
|
||||||
|
|
||||||
|
```
|
||||||
|
#[rustc_on_unimplemented] // error: this attribute must have a value
|
||||||
|
trait Bar {}
|
||||||
|
```
|
||||||
|
|
||||||
|
Please supply the missing value of the attribute. Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
#[rustc_on_unimplemented = "foo"] // ok!
|
||||||
|
trait Bar {}
|
||||||
|
```
|
||||||
|
"##,
|
||||||
|
|
||||||
E0243: r##"
|
E0243: r##"
|
||||||
This error indicates that not enough type parameters were found in a type or
|
This error indicates that not enough type parameters were found in a type or
|
||||||
trait.
|
trait.
|
||||||
|
@ -2153,7 +2169,6 @@ register_diagnostics! {
|
||||||
E0229, // associated type bindings are not allowed here
|
E0229, // associated type bindings are not allowed here
|
||||||
E0230, // there is no type parameter on trait
|
E0230, // there is no type parameter on trait
|
||||||
E0231, // only named substitution parameters are allowed
|
E0231, // only named substitution parameters are allowed
|
||||||
E0232, // this attribute must have a value
|
|
||||||
E0233,
|
E0233,
|
||||||
E0234,
|
E0234,
|
||||||
E0235, // structure constructor specifies a structure of type but
|
E0235, // structure constructor specifies a structure of type but
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue