]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/macro-span-replacement.stderr
dead-code lint: say "constructed" for structs
[rust.git] / src / test / ui / span / macro-span-replacement.stderr
1 warning: struct is never constructed: `S`
2   --> $DIR/macro-span-replacement.rs:17:14
3    |
4 LL |         $b $a; //~ WARN struct is never constructed
5    |              ^
6 ...
7 LL |     m!(S struct);
8    |     ------------- in this macro invocation
9    |
10 note: lint level defined here
11   --> $DIR/macro-span-replacement.rs:13:9
12    |
13 LL | #![warn(unused)]
14    |         ^^^^^^
15    = note: #[warn(dead_code)] implied by #[warn(unused)]
16