]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/issue-61963.stderr
Override rustc version in ui and mir-opt tests to get stable hashes
[rust.git] / src / test / ui / suggestions / issue-61963.stderr
1 error: trait objects without an explicit `dyn` are deprecated
2   --> $DIR/issue-61963.rs:28:14
3    |
4 LL |     bar: Box<Bar>,
5    |              ^^^
6    |
7 note: the lint level is defined here
8   --> $DIR/issue-61963.rs:3:9
9    |
10 LL | #![deny(bare_trait_objects)]
11    |         ^^^^^^^^^^^^^^^^^^
12    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
13    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
14 help: use `dyn`
15    |
16 LL -     bar: Box<Bar>,
17 LL +     bar: Box<dyn Bar>,
18    | 
19
20 error: trait objects without an explicit `dyn` are deprecated
21   --> $DIR/issue-61963.rs:18:1
22    |
23 LL | pub struct Foo {
24    | ^^^
25    |
26    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
27    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
28 help: use `dyn`
29    |
30 LL - pub struct Foo {
31 LL + dyn pub struct Foo {
32    | 
33
34 error: trait objects without an explicit `dyn` are deprecated
35   --> $DIR/issue-61963.rs:28:14
36    |
37 LL |     bar: Box<Bar>,
38    |              ^^^
39    |
40    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
41    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
42 help: use `dyn`
43    |
44 LL -     bar: Box<Bar>,
45 LL +     bar: Box<dyn Bar>,
46    | 
47
48 error: trait objects without an explicit `dyn` are deprecated
49   --> $DIR/issue-61963.rs:28:14
50    |
51 LL |     bar: Box<Bar>,
52    |              ^^^
53    |
54    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
55    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
56 help: use `dyn`
57    |
58 LL -     bar: Box<Bar>,
59 LL +     bar: Box<dyn Bar>,
60    | 
61
62 error: trait objects without an explicit `dyn` are deprecated
63   --> $DIR/issue-61963.rs:18:1
64    |
65 LL | pub struct Foo {
66    | ^^^
67    |
68    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
69    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
70 help: use `dyn`
71    |
72 LL - pub struct Foo {
73 LL + dyn pub struct Foo {
74    | 
75
76 error: trait objects without an explicit `dyn` are deprecated
77   --> $DIR/issue-61963.rs:18:1
78    |
79 LL | pub struct Foo {
80    | ^^^
81    |
82    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
83    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
84 help: use `dyn`
85    |
86 LL - pub struct Foo {
87 LL + dyn pub struct Foo {
88    | 
89
90 error: trait objects without an explicit `dyn` are deprecated
91   --> $DIR/issue-61963.rs:18:1
92    |
93 LL | pub struct Foo {
94    | ^^^
95    |
96    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
97    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
98 help: use `dyn`
99    |
100 LL - pub struct Foo {
101 LL + dyn pub struct Foo {
102    | 
103
104 error: aborting due to 7 previous errors
105