fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: malformed `proc_macro_derive` attribute input 2 --> $DIR/attribute.rs:9:1 3 | 4LL | #[proc_macro_derive] 5 | ^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[proc_macro_derive(TraitName, /*opt*/ attributes(name1, name2, ...))]` 6 7error: malformed `proc_macro_derive` attribute input 8 --> $DIR/attribute.rs:12:1 9 | 10LL | #[proc_macro_derive = ""] 11 | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[proc_macro_derive(TraitName, /*opt*/ attributes(name1, name2, ...))]` 12 13error: attribute must have either one or two arguments 14 --> $DIR/attribute.rs:15:1 15 | 16LL | #[proc_macro_derive(d3, a, b)] 17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18 19error: attribute must have either one or two arguments 20 --> $DIR/attribute.rs:19:1 21 | 22LL | #[proc_macro_derive(d4, attributes(a), b)] 23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 24 25error: not a meta item 26 --> $DIR/attribute.rs:23:21 27 | 28LL | #[proc_macro_derive("a")] 29 | ^^^ 30 31error: must only be one word 32 --> $DIR/attribute.rs:27:21 33 | 34LL | #[proc_macro_derive(d6 = "")] 35 | ^^^^^^^ 36 37error: must only be one word 38 --> $DIR/attribute.rs:31:21 39 | 40LL | #[proc_macro_derive(m::d7)] 41 | ^^^^^ 42 43error: must only be one word 44 --> $DIR/attribute.rs:35:21 45 | 46LL | #[proc_macro_derive(d8(a))] 47 | ^^^^^ 48 49error: `self` cannot be a name of derive macro 50 --> $DIR/attribute.rs:39:21 51 | 52LL | #[proc_macro_derive(self)] 53 | ^^^^ 54 55error: second argument must be `attributes` 56 --> $DIR/attribute.rs:46:26 57 | 58LL | #[proc_macro_derive(d11, a)] 59 | ^ 60 61error: attribute must be of form: `attributes(foo, bar)` 62 --> $DIR/attribute.rs:46:26 63 | 64LL | #[proc_macro_derive(d11, a)] 65 | ^ 66 67error: attribute must be of form: `attributes(foo, bar)` 68 --> $DIR/attribute.rs:51:26 69 | 70LL | #[proc_macro_derive(d12, attributes)] 71 | ^^^^^^^^^^ 72 73error: attribute must be a meta item, not a literal 74 --> $DIR/attribute.rs:55:37 75 | 76LL | #[proc_macro_derive(d13, attributes("a"))] 77 | ^^^ 78 79error: attribute must only be a single word 80 --> $DIR/attribute.rs:59:37 81 | 82LL | #[proc_macro_derive(d14, attributes(a = ""))] 83 | ^^^^^^ 84 85error: attribute must only be a single word 86 --> $DIR/attribute.rs:63:37 87 | 88LL | #[proc_macro_derive(d15, attributes(m::a))] 89 | ^^^^ 90 91error: attribute must only be a single word 92 --> $DIR/attribute.rs:67:37 93 | 94LL | #[proc_macro_derive(d16, attributes(a(b)))] 95 | ^^^^ 96 97error: `self` cannot be a name of derive helper attribute 98 --> $DIR/attribute.rs:71:37 99 | 100LL | #[proc_macro_derive(d17, attributes(self))] 101 | ^^^^ 102 103error: aborting due to 17 previous errors 104