|
1 | 1 | error[E0433]: failed to resolve: use of unresolved module or unlinked crate `should_panic`
|
2 |
| - --> $DIR/check-builtin-attr-ice.rs:43:7 |
| 2 | + --> $DIR/check-builtin-attr-ice.rs:45:7 |
3 | 3 | |
|
4 | 4 | LL | #[should_panic::skip]
|
5 | 5 | | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `should_panic`
|
6 | 6 |
|
7 | 7 | error[E0433]: failed to resolve: use of unresolved module or unlinked crate `should_panic`
|
8 |
| - --> $DIR/check-builtin-attr-ice.rs:47:7 |
| 8 | + --> $DIR/check-builtin-attr-ice.rs:50:7 |
9 | 9 | |
|
10 | 10 | LL | #[should_panic::a::b::c]
|
11 | 11 | | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `should_panic`
|
12 | 12 |
|
13 | 13 | error[E0433]: failed to resolve: use of unresolved module or unlinked crate `deny`
|
14 |
| - --> $DIR/check-builtin-attr-ice.rs:55:7 |
| 14 | + --> $DIR/check-builtin-attr-ice.rs:59:7 |
15 | 15 | |
|
16 | 16 | LL | #[deny::skip]
|
17 | 17 | | ^^^^ use of unresolved module or unlinked crate `deny`
|
18 | 18 |
|
19 |
| -error: aborting due to 3 previous errors |
| 19 | +error: `#[]` only has an effect on functions |
| 20 | + --> $DIR/check-builtin-attr-ice.rs:45:5 |
| 21 | + | |
| 22 | +LL | #[should_panic::skip] |
| 23 | + | ^^^^^^^^^^^^^^^^^^^^^ |
| 24 | + | |
| 25 | +note: the lint level is defined here |
| 26 | + --> $DIR/check-builtin-attr-ice.rs:42:9 |
| 27 | + | |
| 28 | +LL | #![deny(unused_attributes)] |
| 29 | + | ^^^^^^^^^^^^^^^^^ |
| 30 | + |
| 31 | +error: `#[]` only has an effect on functions |
| 32 | + --> $DIR/check-builtin-attr-ice.rs:50:5 |
| 33 | + | |
| 34 | +LL | #[should_panic::a::b::c] |
| 35 | + | ^^^^^^^^^^^^^^^^^^^^^^^^ |
| 36 | + |
| 37 | +error: aborting due to 5 previous errors |
20 | 38 |
|
21 | 39 | For more information about this error, try `rustc --explain E0433`.
|
0 commit comments