fork/rust

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

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

master
796 B25 linesraw
1error[E0782]: trait objects must include the `dyn` keyword
2  --> $DIR/dyn-2021-edition-error.rs:3:17
3   |
4LL | fn function(x: &SomeTrait, y: Box<SomeTrait>) {
5   |                 ^^^^^^^^^
6   |
7help: add `dyn` keyword before this trait
8   |
9LL | fn function(x: &dyn SomeTrait, y: Box<SomeTrait>) {
10   |                 +++
11
12error[E0782]: trait objects must include the `dyn` keyword
13  --> $DIR/dyn-2021-edition-error.rs:3:35
14   |
15LL | fn function(x: &SomeTrait, y: Box<SomeTrait>) {
16   |                                   ^^^^^^^^^
17   |
18help: add `dyn` keyword before this trait
19   |
20LL | fn function(x: &SomeTrait, y: Box<dyn SomeTrait>) {
21   |                                   +++
22
23error: aborting due to 2 previous errors
24
25For more information about this error, try `rustc --explain E0782`.