@@ -5,16 +5,6 @@ test $DIR/display-output.rs - foo (line 9) ... ok
5
5
successes:
6
6
7
7
---- $DIR/display-output.rs - foo (line 9) stdout ----
8
- warning: trait objects without an explicit `dyn` are deprecated
9
- --> $DIR/display-output.rs:13:12
10
- |
11
- LL | 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
-
18
8
warning: unused variable: `x`
19
9
--> $DIR/display-output.rs:11:5
20
10
|
@@ -31,13 +21,13 @@ LL | #![warn(unused)]
31
21
warning: unused variable: `x`
32
22
--> $DIR/display-output.rs:13:8
33
23
|
34
- LL | fn foo(x: &std::fmt::Display) {}
24
+ LL | fn foo(x: &dyn std::fmt::Display) {}
35
25
| ^ help: if this is intentional, prefix it with an underscore: `_x`
36
26
37
27
warning: function is never used: `foo`
38
28
--> $DIR/display-output.rs:13:4
39
29
|
40
- LL | fn foo(x: &std::fmt::Display) {}
30
+ LL | fn foo(x: &dyn std::fmt::Display) {}
41
31
| ^^^
42
32
|
43
33
note: the lint level is defined here
@@ -47,7 +37,7 @@ LL | #![warn(unused)]
47
37
| ^^^^^^
48
38
= note: `#[warn(dead_code)]` implied by `#[warn(unused)]`
49
39
50
- warning: 4 warnings emitted
40
+ warning: 3 warnings emitted
51
41
52
42
53
43
0 commit comments