]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/unused/unused-attr-macro-rules.stderr
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / lint / unused / unused-attr-macro-rules.stderr
1 error: `#[macro_use]` only has an effect on `extern crate` and modules
2   --> $DIR/unused-attr-macro-rules.rs:7:1
3    |
4 LL | #[macro_use]
5    | ^^^^^^^^^^^^
6    |
7 note: the lint level is defined here
8   --> $DIR/unused-attr-macro-rules.rs:1:9
9    |
10 LL | #![deny(unused_attributes)]
11    |         ^^^^^^^^^^^^^^^^^
12
13 error: `#[path]` only has an effect on modules
14   --> $DIR/unused-attr-macro-rules.rs:8:1
15    |
16 LL | #[path="foo"]
17    | ^^^^^^^^^^^^^
18
19 error: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
20   --> $DIR/unused-attr-macro-rules.rs:9:1
21    |
22 LL | #[recursion_limit="1"]
23    | ^^^^^^^^^^^^^^^^^^^^^^
24
25 error: aborting due to 3 previous errors
26