summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-17758.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-17758.stderr')
-rw-r--r--tests/ui/issues/issue-17758.stderr13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-17758.stderr b/tests/ui/issues/issue-17758.stderr
new file mode 100644
index 000000000..613ef6b90
--- /dev/null
+++ b/tests/ui/issues/issue-17758.stderr
@@ -0,0 +1,13 @@
+error: lifetime may not live long enough
+ --> $DIR/issue-17758.rs:7:9
+ |
+LL | trait Foo<'a> {
+ | -- lifetime `'a` defined here
+LL | fn foo(&'a self);
+LL | fn bar(&self) {
+ | - let's call the lifetime of this reference `'1`
+LL | self.foo();
+ | ^^^^^^^^^^ argument requires that `'1` must outlive `'a`
+
+error: aborting due to previous error
+