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