summaryrefslogtreecommitdiffstats
path: root/src/test/ui/editions/dyn-trait-sugg-2021.stderr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/editions/dyn-trait-sugg-2021.stderr14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/editions/dyn-trait-sugg-2021.stderr b/src/test/ui/editions/dyn-trait-sugg-2021.stderr
new file mode 100644
index 000000000..8c68dec1d
--- /dev/null
+++ b/src/test/ui/editions/dyn-trait-sugg-2021.stderr
@@ -0,0 +1,14 @@
+error[E0782]: trait objects must include the `dyn` keyword
+ --> $DIR/dyn-trait-sugg-2021.rs:10:5
+ |
+LL | Foo::hi(123);
+ | ^^^
+ |
+help: add `dyn` keyword before this trait
+ |
+LL | <dyn Foo>::hi(123);
+ | ++++ +
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0782`.