summaryrefslogtreecommitdiffstats
path: root/tests/ui/generic-const-items/unsatisfied-outlives-bounds.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/generic-const-items/unsatisfied-outlives-bounds.stderr')
-rw-r--r--tests/ui/generic-const-items/unsatisfied-outlives-bounds.stderr18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/ui/generic-const-items/unsatisfied-outlives-bounds.stderr b/tests/ui/generic-const-items/unsatisfied-outlives-bounds.stderr
new file mode 100644
index 000000000..72e4265b3
--- /dev/null
+++ b/tests/ui/generic-const-items/unsatisfied-outlives-bounds.stderr
@@ -0,0 +1,18 @@
+error: lifetime may not live long enough
+ --> $DIR/unsatisfied-outlives-bounds.rs:10:14
+ |
+LL | fn parametrized0<'any>() {
+ | ---- lifetime `'any` defined here
+LL | let () = C::<'static, &'any ()>;
+ | ^^^^^^^^^^^^^^^^^^^^^^ requires that `'any` must outlive `'static`
+
+error: lifetime may not live long enough
+ --> $DIR/unsatisfied-outlives-bounds.rs:14:14
+ |
+LL | fn parametrized1<'any>() {
+ | ---- lifetime `'any` defined here
+LL | let () = K::<'static, 'any>;
+ | ^^^^^^^^^^^^^^^^^^ requires that `'any` must outlive `'static`
+
+error: aborting due to 2 previous errors
+