fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
3.1 KiB98 linesraw
1error: trait objects without an explicit `dyn` are deprecated
2  --> $DIR/issue-61963.rs:28:14
3   |
4LL |     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>
9note: the lint level is defined here
10  --> $DIR/issue-61963.rs:3:9
11   |
12LL | #![deny(bare_trait_objects)]
13   |         ^^^^^^^^^^^^^^^^^^
14help: use `dyn`
15   |
16LL |     bar: Box<dyn Bar>,
17   |              +++
18
19error: trait objects without an explicit `dyn` are deprecated
20  --> $DIR/issue-61963.rs:18:1
21   |
22LL | 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>
27help: use `dyn`
28   |
29LL | dyn pub struct Foo {
30   | +++
31
32error: trait objects without an explicit `dyn` are deprecated
33  --> $DIR/issue-61963.rs:28:14
34   |
35LL |     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>
40help: use `dyn`
41   |
42LL |     bar: Box<dyn Bar>,
43   |              +++
44
45error: trait objects without an explicit `dyn` are deprecated
46  --> $DIR/issue-61963.rs:28:14
47   |
48LL |     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>
53help: use `dyn`
54   |
55LL |     bar: Box<dyn Bar>,
56   |              +++
57
58error: trait objects without an explicit `dyn` are deprecated
59  --> $DIR/issue-61963.rs:18:1
60   |
61LL | 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>
66help: use `dyn`
67   |
68LL | dyn pub struct Foo {
69   | +++
70
71error: trait objects without an explicit `dyn` are deprecated
72  --> $DIR/issue-61963.rs:18:1
73   |
74LL | 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>
79help: use `dyn`
80   |
81LL | dyn pub struct Foo {
82   | +++
83
84error: trait objects without an explicit `dyn` are deprecated
85  --> $DIR/issue-61963.rs:18:1
86   |
87LL | 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>
92help: use `dyn`
93   |
94LL | dyn pub struct Foo {
95   | +++
96
97error: aborting due to 7 previous errors
98