]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/rfc-2383-lint-reason/force_warn_expected_lints_fulfilled.stderr
Rollup merge of #106441 - mllken:abstract-socket-noref, r=joshtriplett
[rust.git] / tests / ui / lint / rfc-2383-lint-reason / force_warn_expected_lints_fulfilled.stderr
1 warning: unused variable: `x`
2   --> $DIR/force_warn_expected_lints_fulfilled.rs:20:9
3    |
4 LL |     let x = 2;
5    |         ^ help: if this is intentional, prefix it with an underscore: `_x`
6    |
7    = note: requested on the command line with `--force-warn unused-variables`
8
9 warning: unused variable: `fox_name`
10   --> $DIR/force_warn_expected_lints_fulfilled.rs:28:9
11    |
12 LL |     let fox_name = "Sir Nibbles";
13    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fox_name`
14
15 warning: unused variable: `this_should_fulfill_the_expectation`
16   --> $DIR/force_warn_expected_lints_fulfilled.rs:43:9
17    |
18 LL |     let this_should_fulfill_the_expectation = "The `#[allow]` has no power here";
19    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_this_should_fulfill_the_expectation`
20
21 warning: variable does not need to be mutable
22   --> $DIR/force_warn_expected_lints_fulfilled.rs:32:9
23    |
24 LL |     let mut what_does_the_fox_say = "*ding* *deng* *dung*";
25    |         ----^^^^^^^^^^^^^^^^^^^^^
26    |         |
27    |         help: remove this `mut`
28    |
29    = note: requested on the command line with `--force-warn unused-mut`
30
31 warning: denote infinite loops with `loop { ... }`
32   --> $DIR/force_warn_expected_lints_fulfilled.rs:10:5
33    |
34 LL |     while true {
35    |     ^^^^^^^^^^ help: use `loop`
36    |
37    = note: requested on the command line with `--force-warn while-true`
38
39 warning: 5 warnings emitted
40