]>
Commit | Line | Data |
---|---|---|
c295e0f8 XL |
1 | |
2 | running 1 test | |
3c0e092e | 3 | test $DIR/display-output.rs - foo (line 9) ... ok |
c295e0f8 XL |
4 | |
5 | successes: | |
6 | ||
3c0e092e | 7 | ---- $DIR/display-output.rs - foo (line 9) stdout ---- |
c295e0f8 | 8 | warning: unused variable: `x` |
3c0e092e | 9 | --> $DIR/display-output.rs:11:5 |
c295e0f8 XL |
10 | | |
11 | LL | let x = 12; | |
12 | | ^ help: if this is intentional, prefix it with an underscore: `_x` | |
13 | | | |
3c0e092e XL |
14 | note: the lint level is defined here |
15 | --> $DIR/display-output.rs:9:9 | |
16 | | | |
17 | LL | #![warn(unused)] | |
18 | | ^^^^^^ | |
19 | = note: `#[warn(unused_variables)]` implied by `#[warn(unused)]` | |
20 | ||
21 | warning: unused variable: `x` | |
22 | --> $DIR/display-output.rs:13:8 | |
23 | | | |
a2a8927a | 24 | LL | fn foo(x: &dyn std::fmt::Display) {} |
3c0e092e XL |
25 | | ^ help: if this is intentional, prefix it with an underscore: `_x` |
26 | ||
923072b8 | 27 | warning: function `foo` is never used |
3c0e092e XL |
28 | --> $DIR/display-output.rs:13:4 |
29 | | | |
a2a8927a | 30 | LL | fn foo(x: &dyn std::fmt::Display) {} |
3c0e092e XL |
31 | | ^^^ |
32 | | | |
3c0e092e | 33 | = note: `#[warn(dead_code)]` implied by `#[warn(unused)]` |
c295e0f8 | 34 | |
a2a8927a | 35 | warning: 3 warnings emitted |
c295e0f8 XL |
36 | |
37 | ||
38 | ||
39 | successes: | |
3c0e092e | 40 | $DIR/display-output.rs - foo (line 9) |
c295e0f8 XL |
41 | |
42 | test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME | |
43 |