summaryrefslogtreecommitdiffstats
path: root/tests/ui/auto-traits/bad-generics-on-dyn.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/auto-traits/bad-generics-on-dyn.stderr')
-rw-r--r--tests/ui/auto-traits/bad-generics-on-dyn.stderr11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/auto-traits/bad-generics-on-dyn.stderr b/tests/ui/auto-traits/bad-generics-on-dyn.stderr
new file mode 100644
index 000000000..ade69ced6
--- /dev/null
+++ b/tests/ui/auto-traits/bad-generics-on-dyn.stderr
@@ -0,0 +1,11 @@
+error[E0567]: auto traits cannot have generic parameters
+ --> $DIR/bad-generics-on-dyn.rs:3:18
+ |
+LL | auto trait Trait1<'a> {}
+ | ------^^^^ help: remove the parameters
+ | |
+ | auto trait cannot have generic parameters
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0567`.