]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-17758.nll.stderr
New upstream version 1.60.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-17758.nll.stderr
CommitLineData
5099ac24 1error: lifetime may not live long enough
48663c56
XL
2 --> $DIR/issue-17758.rs:7:9
3 |
c295e0f8
XL
4LL | trait Foo<'a> {
5 | -- lifetime `'a` defined here
6LL | fn foo(&'a self);
48663c56 7LL | fn bar(&self) {
5099ac24 8 | - let's call the lifetime of this reference `'1`
48663c56 9LL | self.foo();
5099ac24 10 | ^^^^^^^^^^ argument requires that `'1` must outlive `'a`
48663c56
XL
11
12error: aborting due to previous error
13