fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error: malformed `rustc_on_unimplemented` attribute input 2 --> $DIR/bad-annotation.rs:17:1 3 | 4LL | #[rustc_on_unimplemented] 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 6help: the following are the possible correct uses 7 | 8LL | #[rustc_on_unimplemented(/*opt*/ message = "...", /*opt*/ label = "...", /*opt*/ note = "...")] 9 | 10LL | #[rustc_on_unimplemented = "message"] 11 | 12 13error[E0230]: there is no parameter `C` on trait `BadAnnotation2` 14 --> $DIR/bad-annotation.rs:22:1 15 | 16LL | #[rustc_on_unimplemented = "Unimplemented trait error on `{Self}` with params `<{A},{B},{C}>`"] 17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18 19error[E0231]: only named substitution parameters are allowed 20 --> $DIR/bad-annotation.rs:27:1 21 | 22LL | #[rustc_on_unimplemented = "Unimplemented trait error on `{Self}` with params `<{A},{B},{}>`"] 23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 24 25error[E0232]: this attribute must have a valid value 26 --> $DIR/bad-annotation.rs:32:26 27 | 28LL | #[rustc_on_unimplemented(lorem="")] 29 | ^^^^^^^^ expected value here 30 | 31 = note: eg `#[rustc_on_unimplemented(message="foo")]` 32 33error[E0232]: this attribute must have a valid value 34 --> $DIR/bad-annotation.rs:36:26 35 | 36LL | #[rustc_on_unimplemented(lorem(ipsum(dolor)))] 37 | ^^^^^^^^^^^^^^^^^^^ expected value here 38 | 39 = note: eg `#[rustc_on_unimplemented(message="foo")]` 40 41error[E0232]: this attribute must have a valid value 42 --> $DIR/bad-annotation.rs:40:39 43 | 44LL | #[rustc_on_unimplemented(message="x", message="y")] 45 | ^^^^^^^^^^^ expected value here 46 | 47 = note: eg `#[rustc_on_unimplemented(message="foo")]` 48 49error[E0232]: this attribute must have a valid value 50 --> $DIR/bad-annotation.rs:44:39 51 | 52LL | #[rustc_on_unimplemented(message="x", on(desugared, message="y"))] 53 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected value here 54 | 55 = note: eg `#[rustc_on_unimplemented(message="foo")]` 56 57error[E0232]: empty `on`-clause in `#[rustc_on_unimplemented]` 58 --> $DIR/bad-annotation.rs:48:26 59 | 60LL | #[rustc_on_unimplemented(on(), message="y")] 61 | ^^^^ empty on-clause here 62 63error[E0232]: this attribute must have a valid value 64 --> $DIR/bad-annotation.rs:52:26 65 | 66LL | #[rustc_on_unimplemented(on="x", message="y")] 67 | ^^^^^^ expected value here 68 | 69 = note: eg `#[rustc_on_unimplemented(message="foo")]` 70 71error[E0232]: this attribute must have a valid value 72 --> $DIR/bad-annotation.rs:59:40 73 | 74LL | #[rustc_on_unimplemented(on(desugared, on(desugared, message="x")), message="y")] 75 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected value here 76 | 77 = note: eg `#[rustc_on_unimplemented(message="foo")]` 78 79error: aborting due to 10 previous errors 80 81Some errors have detailed explanations: E0230, E0231, E0232. 82For more information about an error, try `rustc --explain E0230`.