]> git.lizzy.rs Git - rust.git/blob - src/test/ui/dyn-keyword/dyn-2021-edition-error.stderr
Auto merge of #84589 - In-line:zircon-thread-name, r=JohnTitor
[rust.git] / src / test / ui / dyn-keyword / dyn-2021-edition-error.stderr
1 error[E0782]: trait objects must include the `dyn` keyword
2   --> $DIR/dyn-2021-edition-error.rs:6:14
3    |
4 LL |     let _x: &SomeTrait = todo!();
5    |              ^^^^^^^^^
6    |
7 help: add `dyn` keyword before this trait
8    |
9 LL |     let _x: &dyn SomeTrait = todo!();
10    |              ^^^
11
12 error[E0782]: trait objects must include the `dyn` keyword
13   --> $DIR/dyn-2021-edition-error.rs:3:17
14    |
15 LL | fn function(x: &SomeTrait, y: Box<SomeTrait>) {
16    |                 ^^^^^^^^^
17    |
18 help: add `dyn` keyword before this trait
19    |
20 LL | fn function(x: &dyn SomeTrait, y: Box<SomeTrait>) {
21    |                 ^^^
22
23 error[E0782]: trait objects must include the `dyn` keyword
24   --> $DIR/dyn-2021-edition-error.rs:3:35
25    |
26 LL | fn function(x: &SomeTrait, y: Box<SomeTrait>) {
27    |                                   ^^^^^^^^^
28    |
29 help: add `dyn` keyword before this trait
30    |
31 LL | fn function(x: &SomeTrait, y: Box<dyn SomeTrait>) {
32    |                                   ^^^
33
34 error: aborting due to 3 previous errors
35
36 For more information about this error, try `rustc --explain E0782`.