|
| 1 | +error[E0469]: imported macro not found |
| 2 | + --> $DIR/invalid-macro-use.rs:47:13 |
| 3 | + | |
| 4 | +LL | #[macro_use(a)] |
| 5 | + | ^ |
| 6 | + |
| 7 | +error[E0469]: imported macro not found |
| 8 | + --> $DIR/invalid-macro-use.rs:49:13 |
| 9 | + | |
| 10 | +LL | #[macro_use(b)] |
| 11 | + | ^ |
| 12 | + |
| 13 | +error: valid forms for the attribute are `#[macro_use(name1, name2, ...)]` and `#[macro_use]` |
| 14 | + --> $DIR/invalid-macro-use.rs:4:1 |
| 15 | + | |
| 16 | +LL | #[macro_use = 5] |
| 17 | + | ^^^^^^^^^^^^^^^^ |
| 18 | + |
| 19 | +error[E0539]: malformed `macro_use` attribute input |
| 20 | + --> $DIR/invalid-macro-use.rs:8:1 |
| 21 | + | |
| 22 | +LL | #[macro_use(5)] |
| 23 | + | ^^^^^^^^^^^^-^^ |
| 24 | + | | |
| 25 | + | expected a valid identifier here |
| 26 | + | |
| 27 | +help: try changing it to one of the following valid forms of the attribute |
| 28 | + | |
| 29 | +LL - #[macro_use(5)] |
| 30 | +LL + #[macro_use(name1, name2, ...)] |
| 31 | + | |
| 32 | +LL - #[macro_use(5)] |
| 33 | +LL + #[macro_use] |
| 34 | + | |
| 35 | + |
| 36 | +error[E0565]: malformed `macro_use` attribute input |
| 37 | + --> $DIR/invalid-macro-use.rs:13:1 |
| 38 | + | |
| 39 | +LL | #[macro_use(a = "b")] |
| 40 | + | ^^^^^^^^^^^^^^-----^^ |
| 41 | + | | |
| 42 | + | didn't expect any arguments here |
| 43 | + | |
| 44 | +help: try changing it to one of the following valid forms of the attribute |
| 45 | + | |
| 46 | +LL - #[macro_use(a = "b")] |
| 47 | +LL + #[macro_use(name1, name2, ...)] |
| 48 | + | |
| 49 | +LL - #[macro_use(a = "b")] |
| 50 | +LL + #[macro_use] |
| 51 | + | |
| 52 | + |
| 53 | +error[E0565]: malformed `macro_use` attribute input |
| 54 | + --> $DIR/invalid-macro-use.rs:18:1 |
| 55 | + | |
| 56 | +LL | #[macro_use(a(b))] |
| 57 | + | ^^^^^^^^^^^^^---^^ |
| 58 | + | | |
| 59 | + | didn't expect any arguments here |
| 60 | + | |
| 61 | +help: try changing it to one of the following valid forms of the attribute |
| 62 | + | |
| 63 | +LL - #[macro_use(a(b))] |
| 64 | +LL + #[macro_use(name1, name2, ...)] |
| 65 | + | |
| 66 | +LL - #[macro_use(a(b))] |
| 67 | +LL + #[macro_use] |
| 68 | + | |
| 69 | + |
| 70 | +error[E0539]: malformed `macro_use` attribute input |
| 71 | + --> $DIR/invalid-macro-use.rs:23:1 |
| 72 | + | |
| 73 | +LL | #[macro_use(a::b)] |
| 74 | + | ^^^^^^^^^^^^----^^ |
| 75 | + | | |
| 76 | + | expected a valid identifier here |
| 77 | + | |
| 78 | +help: try changing it to one of the following valid forms of the attribute |
| 79 | + | |
| 80 | +LL - #[macro_use(a::b)] |
| 81 | +LL + #[macro_use(name1, name2, ...)] |
| 82 | + | |
| 83 | +LL - #[macro_use(a::b)] |
| 84 | +LL + #[macro_use] |
| 85 | + | |
| 86 | + |
| 87 | +error: unused attribute |
| 88 | + --> $DIR/invalid-macro-use.rs:28:1 |
| 89 | + | |
| 90 | +LL | #[macro_use(a)] |
| 91 | + | ^^^^^^^^^^^^^^^ help: remove this attribute |
| 92 | + | |
| 93 | +note: attribute also specified here |
| 94 | + --> $DIR/invalid-macro-use.rs:30:1 |
| 95 | + | |
| 96 | +LL | #[macro_use] |
| 97 | + | ^^^^^^^^^^^^ |
| 98 | +note: the lint level is defined here |
| 99 | + --> $DIR/invalid-macro-use.rs:1:9 |
| 100 | + | |
| 101 | +LL | #![deny(unused_attributes)] |
| 102 | + | ^^^^^^^^^^^^^^^^^ |
| 103 | + |
| 104 | +error: unused attribute |
| 105 | + --> $DIR/invalid-macro-use.rs:36:1 |
| 106 | + | |
| 107 | +LL | #[macro_use(a)] |
| 108 | + | ^^^^^^^^^^^^^^^ help: remove this attribute |
| 109 | + | |
| 110 | +note: attribute also specified here |
| 111 | + --> $DIR/invalid-macro-use.rs:34:1 |
| 112 | + | |
| 113 | +LL | #[macro_use] |
| 114 | + | ^^^^^^^^^^^^ |
| 115 | + |
| 116 | +error: unused attribute |
| 117 | + --> $DIR/invalid-macro-use.rs:42:1 |
| 118 | + | |
| 119 | +LL | #[macro_use] |
| 120 | + | ^^^^^^^^^^^^ help: remove this attribute |
| 121 | + | |
| 122 | +note: attribute also specified here |
| 123 | + --> $DIR/invalid-macro-use.rs:40:1 |
| 124 | + | |
| 125 | +LL | #[macro_use] |
| 126 | + | ^^^^^^^^^^^^ |
| 127 | + |
| 128 | +error: aborting due to 10 previous errors |
| 129 | + |
| 130 | +Some errors have detailed explanations: E0469, E0539, E0565. |
| 131 | +For more information about an error, try `rustc --explain E0469`. |
0 commit comments