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