1
2running 1 test
3test $DIR/display-output.rs - foo (line 9) ... ok
4
5successes:
6
7---- $DIR/display-output.rs - foo (line 9) stdout ----
8warning: trait objects without an explicit `dyn` are deprecated
9  --> $DIR/display-output.rs:13:12
10   |
11LL | fn foo(x: &std::fmt::Display) {}
12   |            ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn std::fmt::Display`
13   |
14   = note: `#[warn(bare_trait_objects)]` on by default
15   = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
16   = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
17
18warning: unused variable: `x`
19  --> $DIR/display-output.rs:11:5
20   |
21LL | let x = 12;
22   |     ^ help: if this is intentional, prefix it with an underscore: `_x`
23   |
24note: the lint level is defined here
25  --> $DIR/display-output.rs:9:9
26   |
27LL | #![warn(unused)]
28   |         ^^^^^^
29   = note: `#[warn(unused_variables)]` implied by `#[warn(unused)]`
30
31warning: unused variable: `x`
32  --> $DIR/display-output.rs:13:8
33   |
34LL | fn foo(x: &std::fmt::Display) {}
35   |        ^ help: if this is intentional, prefix it with an underscore: `_x`
36
37warning: function is never used: `foo`
38  --> $DIR/display-output.rs:13:4
39   |
40LL | fn foo(x: &std::fmt::Display) {}
41   |    ^^^
42   |
43note: the lint level is defined here
44  --> $DIR/display-output.rs:9:9
45   |
46LL | #![warn(unused)]
47   |         ^^^^^^
48   = note: `#[warn(dead_code)]` implied by `#[warn(unused)]`
49
50warning: 4 warnings emitted
51
52
53
54successes:
55    $DIR/display-output.rs - foo (line 9)
56
57test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
58
59