summaryrefslogtreecommitdiffstats
path: root/src/test/ui/auto-traits/typeck-auto-trait-no-supertraits-2.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/auto-traits/typeck-auto-trait-no-supertraits-2.stderr')
-rw-r--r--src/test/ui/auto-traits/typeck-auto-trait-no-supertraits-2.stderr19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/ui/auto-traits/typeck-auto-trait-no-supertraits-2.stderr b/src/test/ui/auto-traits/typeck-auto-trait-no-supertraits-2.stderr
new file mode 100644
index 000000000..4827916fa
--- /dev/null
+++ b/src/test/ui/auto-traits/typeck-auto-trait-no-supertraits-2.stderr
@@ -0,0 +1,19 @@
+error[E0568]: auto traits cannot have super traits or lifetime bounds
+ --> $DIR/typeck-auto-trait-no-supertraits-2.rs:4:17
+ |
+LL | auto trait Magic : Sized where Option<Self> : Magic {}
+ | -----^^^^^^^^ help: remove the super traits or lifetime bounds
+ | |
+ | auto trait cannot have super traits or lifetime bounds
+
+error[E0568]: auto traits cannot have super traits or lifetime bounds
+ --> $DIR/typeck-auto-trait-no-supertraits-2.rs:4:26
+ |
+LL | auto trait Magic : Sized where Option<Self> : Magic {}
+ | ----- ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the super traits or lifetime bounds
+ | |
+ | auto trait cannot have super traits or lifetime bounds
+
+error: aborting due to 2 previous errors
+
+For more information about this error, try `rustc --explain E0568`.