aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/unsupported_elided.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/unsupported_elided.stderr')
-rw-r--r--tests/ui/unsupported_elided.stderr8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/unsupported_elided.stderr b/tests/ui/unsupported_elided.stderr
index 4ccac6fb..205fcfd2 100644
--- a/tests/ui/unsupported_elided.stderr
+++ b/tests/ui/unsupported_elided.stderr
@@ -20,3 +20,11 @@ help: consider introducing a named lifetime parameter
|
8 | fn f<'a>(t: &'a T<'a>) -> &'a str;
| ++++ ++ ++++ ++
+
+error: lifetime may not live long enough
+ --> tests/ui/unsupported_elided.rs:8:12
+ |
+8 | fn f(t: &T) -> &str;
+ | ^ - has type `&T<'1>`
+ | |
+ | returning this value requires that `'1` must outlive `'static`