rust/tests/ui/editions/dyn-trait-sugg-2021.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
349 B
Plaintext
Raw Normal View History

2021-07-10 08:00:54 +00:00
error[E0782]: trait objects must include the `dyn` keyword
--> $DIR/dyn-trait-sugg-2021.rs:10:5
|
LL | Foo::hi(123);
2021-07-10 08:00:54 +00:00
| ^^^
|
help: add `dyn` keyword before this trait
|
LL | <dyn Foo>::hi(123);
2021-11-01 09:01:42 +00:00
| ++++ +
error: aborting due to 1 previous error
2021-11-10 17:49:30 +00:00
For more information about this error, try `rustc --explain E0782`.