summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/unused/unused-macro-rules-compile-error.stderr
blob: 76af8c967db1e42085b4b2b63cf2b4e7f7f64ef6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
error: 5th rule of macro `num` is never used
  --> $DIR/unused-macro-rules-compile-error.rs:12:5
   |
LL |     (four) => { 4 };
   |     ^^^^^^
   |
note: the lint level is defined here
  --> $DIR/unused-macro-rules-compile-error.rs:1:9
   |
LL | #![deny(unused_macro_rules)]
   |         ^^^^^^^^^^^^^^^^^^

error: 3rd rule of macro `num2` is never used
  --> $DIR/unused-macro-rules-compile-error.rs:22:5
   |
LL |     (two_) => { compile_error! };
   |     ^^^^^^

error: 2nd rule of macro `num2` is never used
  --> $DIR/unused-macro-rules-compile-error.rs:20:5
   |
LL |     (two) => { fn compile_error() {} };
   |     ^^^^^

error: aborting due to 3 previous errors