summaryrefslogtreecommitdiffstats
path: root/src/test/ui/nll/issue-57280-1-flipped.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/nll/issue-57280-1-flipped.stderr')
-rw-r--r--src/test/ui/nll/issue-57280-1-flipped.stderr11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/nll/issue-57280-1-flipped.stderr b/src/test/ui/nll/issue-57280-1-flipped.stderr
new file mode 100644
index 000000000..7a2135a2a
--- /dev/null
+++ b/src/test/ui/nll/issue-57280-1-flipped.stderr
@@ -0,0 +1,11 @@
+error: lifetime may not live long enough
+ --> $DIR/issue-57280-1-flipped.rs:17:9
+ |
+LL | fn foo<'a>(x: &'static u32) {
+ | -- lifetime `'a` defined here
+LL | match x {
+LL | <() as Foo<'a>>::C => { }
+ | ^^^^^^^^^^^^^^^^^^ type annotation requires that `'a` must outlive `'static`
+
+error: aborting due to previous error
+