]> git.lizzy.rs Git - rust.git/blob - src/test/ui/editions/dyn-trait-sugg-2021.stderr
Rollup merge of #92024 - pcwalton:per-codegen-unit-names, r=davidtwco
[rust.git] / src / test / ui / editions / dyn-trait-sugg-2021.stderr
1 error[E0782]: trait objects must include the `dyn` keyword
2   --> $DIR/dyn-trait-sugg-2021.rs:10:5
3    |
4 LL |     Foo::hi(123);
5    |     ^^^
6    |
7 help: add `dyn` keyword before this trait
8    |
9 LL |     <dyn Foo>::hi(123);
10    |     ++++    +
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0782`.