fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.1 KiB29 linesraw
1warning: unused variable: `x`
2  --> $DIR/expect_lint_from_macro.rs:9:13
3   |
4LL |         let x = 0;
5   |             ^ help: if this is intentional, prefix it with an underscore: `_x`
6...
7LL |     trigger_unused_variables_macro!();
8   |     --------------------------------- in this macro invocation
9   |
10note: the lint level is defined here
11  --> $DIR/expect_lint_from_macro.rs:5:9
12   |
13LL | #![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
17warning: unused variable: `x`
18  --> $DIR/expect_lint_from_macro.rs:9:13
19   |
20LL |         let x = 0;
21   |             ^ help: if this is intentional, prefix it with an underscore: `_x`
22...
23LL |     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
28warning: 2 warnings emitted
29