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