]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/rfc-2383-lint-reason/expect_lint_from_macro.stderr
Rollup merge of #106958 - jyn514:labels, r=m-ou-se
[rust.git] / tests / ui / lint / rfc-2383-lint-reason / expect_lint_from_macro.stderr
1 warning: unused variable: `x`
2   --> $DIR/expect_lint_from_macro.rs:9:13
3    |
4 LL |         let x = 0;
5    |             ^ help: if this is intentional, prefix it with an underscore: `_x`
6 ...
7 LL |     trigger_unused_variables_macro!();
8    |     --------------------------------- in this macro invocation
9    |
10 note: the lint level is defined here
11   --> $DIR/expect_lint_from_macro.rs:5:9
12    |
13 LL | #![warn(unused_variables)]
14    |         ^^^^^^^^^^^^^^^^
15    = note: this warning originates in the macro `trigger_unused_variables_macro` (in Nightly builds, run with -Z macro-backtrace for more info)
16
17 warning: unused variable: `x`
18   --> $DIR/expect_lint_from_macro.rs:9:13
19    |
20 LL |         let x = 0;
21    |             ^ help: if this is intentional, prefix it with an underscore: `_x`
22 ...
23 LL |     trigger_unused_variables_macro!();
24    |     --------------------------------- in this macro invocation
25    |
26    = note: this warning originates in the macro `trigger_unused_variables_macro` (in Nightly builds, run with -Z macro-backtrace for more info)
27
28 warning: 2 warnings emitted
29