2022-06-09 22:14:24 -05:00
|
|
|
warning: struct `S` is never constructed
|
2022-06-22 13:33:59 -05:00
|
|
|
--> $DIR/macro-span-replacement.rs:7:12
|
2017-07-19 23:54:01 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | $b $a;
|
2022-06-22 13:33:59 -05:00
|
|
|
| ^^
|
2017-07-19 23:54:01 -05:00
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | m!(S struct);
|
2021-10-14 13:28:28 -05:00
|
|
|
| ------------ in this macro invocation
|
2017-07-19 23:54:01 -05:00
|
|
|
|
|
2020-01-22 17:57:38 -06:00
|
|
|
note: the lint level is defined here
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/macro-span-replacement.rs:3:9
|
2017-07-26 23:51:09 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | #![warn(unused)]
|
2017-07-26 23:51:09 -05:00
|
|
|
| ^^^^^^
|
2019-07-16 15:17:38 -05:00
|
|
|
= note: `#[warn(dead_code)]` implied by `#[warn(unused)]`
|
2021-02-13 13:52:25 -06:00
|
|
|
= note: this warning originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2017-07-19 23:54:01 -05:00
|
|
|
|
2020-03-11 10:30:09 -05:00
|
|
|
warning: 1 warning emitted
|
|
|
|
|