summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/issues/issue-67146-negative-outlives-bound-syntactic-fail.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/parser/issues/issue-67146-negative-outlives-bound-syntactic-fail.stderr')
-rw-r--r--src/test/ui/parser/issues/issue-67146-negative-outlives-bound-syntactic-fail.stderr20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/test/ui/parser/issues/issue-67146-negative-outlives-bound-syntactic-fail.stderr b/src/test/ui/parser/issues/issue-67146-negative-outlives-bound-syntactic-fail.stderr
new file mode 100644
index 000000000..a4a422948
--- /dev/null
+++ b/src/test/ui/parser/issues/issue-67146-negative-outlives-bound-syntactic-fail.stderr
@@ -0,0 +1,20 @@
+error: negative bounds are not supported
+ --> $DIR/issue-67146-negative-outlives-bound-syntactic-fail.rs:9:12
+ |
+LL | pub fn f1<T: !'static>() {}
+ | ^^^^^^^^^^ negative bounds are not supported
+
+error: negative bounds are not supported
+ --> $DIR/issue-67146-negative-outlives-bound-syntactic-fail.rs:11:22
+ |
+LL | pub fn f2<'a, T: Ord + !'a>() {}
+ | ^^^^^ negative bounds are not supported
+
+error: negative bounds are not supported
+ --> $DIR/issue-67146-negative-outlives-bound-syntactic-fail.rs:13:16
+ |
+LL | pub fn f3<'a, T: !'a + Ord>() {}
+ | ^^^^^ negative bounds are not supported
+
+error: aborting due to 3 previous errors
+