mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
23 lines
926 B
Plaintext
23 lines
926 B
Plaintext
|
error[E0232]: this attribute must have a value
|
||
|
--> $DIR/bad-annotation.rs:26:1
|
||
|
|
|
||
|
26 | #[rustc_on_unimplemented] //~ ERROR this attribute must have a value
|
||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^ attribute requires a value
|
||
|
|
|
||
|
= note: eg `#[rustc_on_unimplemented = "foo"]`
|
||
|
|
||
|
error[E0230]: there is no type parameter C on trait BadAnnotation2
|
||
|
--> $DIR/bad-annotation.rs:30:1
|
||
|
|
|
||
|
30 | #[rustc_on_unimplemented = "Unimplemented trait error on `{Self}` with params `<{A},{B},{C}>`"]
|
||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
|
|
||
|
error[E0231]: only named substitution parameters are allowed
|
||
|
--> $DIR/bad-annotation.rs:35:1
|
||
|
|
|
||
|
35 | #[rustc_on_unimplemented = "Unimplemented trait error on `{Self}` with params `<{A},{B},{}>`"]
|
||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
|
|
||
|
error: aborting due to 3 previous errors
|
||
|
|