3 test $DIR/display-output.rs - foo (line 9) ... ok
7 ---- $DIR/display-output.rs - foo (line 9) stdout ----
8 warning: unused variable: `x`
9 --> $DIR/display-output.rs:11:5
12 | ^ help: if this is intentional, prefix it with an underscore: `_x`
14 note: the lint level is defined here
15 --> $DIR/display-output.rs:9:9
19 = note: `#[warn(unused_variables)]` implied by `#[warn(unused)]`
21 warning: unused variable: `x`
22 --> $DIR/display-output.rs:13:8
24 LL | fn foo(x: &dyn std::fmt::Display) {}
25 | ^ help: if this is intentional, prefix it with an underscore: `_x`
27 warning: function `foo` is never used
28 --> $DIR/display-output.rs:13:4
30 LL | fn foo(x: &dyn std::fmt::Display) {}
33 = note: `#[warn(dead_code)]` implied by `#[warn(unused)]`
35 warning: 3 warnings emitted
40 $DIR/display-output.rs - foo (line 9)
42 test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME