mirror of https://github.com/rust-lang/rust
41 lines
1.4 KiB
Plaintext
41 lines
1.4 KiB
Plaintext
warning: unused variable: `x`
|
|
--> $DIR/force_warn_expected_lints_fulfilled.rs:20:9
|
|
|
|
|
LL | let x = 2;
|
|
| ^ help: if this is intentional, prefix it with an underscore: `_x`
|
|
|
|
|
= note: requested on the command line with `--force-warn unused-variables`
|
|
|
|
warning: unused variable: `fox_name`
|
|
--> $DIR/force_warn_expected_lints_fulfilled.rs:28:9
|
|
|
|
|
LL | let fox_name = "Sir Nibbles";
|
|
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fox_name`
|
|
|
|
warning: variable does not need to be mutable
|
|
--> $DIR/force_warn_expected_lints_fulfilled.rs:32:9
|
|
|
|
|
LL | let mut what_does_the_fox_say = "*ding* *deng* *dung*";
|
|
| ----^^^^^^^^^^^^^^^^^^^^^
|
|
| |
|
|
| help: remove this `mut`
|
|
|
|
|
= note: requested on the command line with `--force-warn unused-mut`
|
|
|
|
warning: unused variable: `this_should_fulfill_the_expectation`
|
|
--> $DIR/force_warn_expected_lints_fulfilled.rs:43:9
|
|
|
|
|
LL | let this_should_fulfill_the_expectation = "The `#[allow]` has no power here";
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_this_should_fulfill_the_expectation`
|
|
|
|
warning: denote infinite loops with `loop { ... }`
|
|
--> $DIR/force_warn_expected_lints_fulfilled.rs:10:5
|
|
|
|
|
LL | while true {
|
|
| ^^^^^^^^^^ help: use `loop`
|
|
|
|
|
= note: requested on the command line with `--force-warn while-true`
|
|
|
|
warning: 5 warnings emitted
|
|
|