rust/src/test/ui/unused/unused-macro-rules.stderr

42 lines
864 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error: unused macro definition
2018-12-25 09:56:47 -06:00
--> $DIR/unused-macro-rules.rs:4:1
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | / macro_rules! unused {
2018-08-08 07:28:26 -05:00
LL | | () => {};
LL | | }
| |_^
|
note: lint level defined here
2018-12-25 09:56:47 -06:00
--> $DIR/unused-macro-rules.rs:1:9
2018-08-08 07:28:26 -05:00
|
LL | #![deny(unused_macros)]
| ^^^^^^^^^^^^^
error: unused macro definition
2018-12-25 09:56:47 -06:00
--> $DIR/unused-macro-rules.rs:11:9
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | / macro_rules! m {
2018-08-08 07:28:26 -05:00
LL | | () => {};
LL | | }
| |_________^
...
LL | create_macro!();
| ---------------- in this macro invocation
error: unused macro definition
2018-12-25 09:56:47 -06:00
--> $DIR/unused-macro-rules.rs:24:5
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | / macro_rules! unused {
2018-08-08 07:28:26 -05:00
LL | | () => {};
LL | | }
| |_____^
|
note: lint level defined here
2018-12-25 09:56:47 -06:00
--> $DIR/unused-macro-rules.rs:23:12
2018-08-08 07:28:26 -05:00
|
LL | #[deny(unused_macros)]
| ^^^^^^^^^^^^^
error: aborting due to 3 previous errors