summaryrefslogtreecommitdiffstats
path: root/src/test/ui/bounds-lifetime.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/bounds-lifetime.stderr')
-rw-r--r--src/test/ui/bounds-lifetime.stderr32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/test/ui/bounds-lifetime.stderr b/src/test/ui/bounds-lifetime.stderr
new file mode 100644
index 000000000..a0395ed49
--- /dev/null
+++ b/src/test/ui/bounds-lifetime.stderr
@@ -0,0 +1,32 @@
+error: lifetime bounds cannot be used in this context
+ --> $DIR/bounds-lifetime.rs:1:22
+ |
+LL | type A = for<'b, 'a: 'b> fn();
+ | ^^
+
+error: lifetime bounds cannot be used in this context
+ --> $DIR/bounds-lifetime.rs:2:22
+ |
+LL | type B = for<'b, 'a: 'b,> fn();
+ | ^^
+
+error: lifetime bounds cannot be used in this context
+ --> $DIR/bounds-lifetime.rs:3:22
+ |
+LL | type C = for<'b, 'a: 'b +> fn();
+ | ^^
+
+error: only lifetime parameters can be used in this context
+ --> $DIR/bounds-lifetime.rs:4:18
+ |
+LL | type D = for<'a, T> fn();
+ | ^
+
+error: only lifetime parameters can be used in this context
+ --> $DIR/bounds-lifetime.rs:5:18
+ |
+LL | type E = dyn for<T> Fn();
+ | ^
+
+error: aborting due to 5 previous errors
+