]> git.proxmox.com Git - rustc.git/blame - src/test/ui/async-await/issues/issue-63388-1.nll.stderr
New upstream version 1.43.0+dfsg1
[rustc.git] / src / test / ui / async-await / issues / issue-63388-1.nll.stderr
CommitLineData
e1599b0c
XL
1error: lifetime may not live long enough
2 --> $DIR/issue-63388-1.rs:13:5
3 |
4LL | async fn do_sth<'a>(
5 | -- lifetime `'a` defined here
6LL | &'a self, foo: &dyn Foo
60c5eb7d 7 | - let's call the lifetime of this reference `'1`
e1599b0c
XL
8LL | ) -> &dyn Foo
9LL | / {
10LL | | foo
11LL | | }
74b04a01 12 | |_____^ method was supposed to return data with lifetime `'a` but it is returning data with lifetime `'1`
e1599b0c 13
74b04a01 14error: aborting due to previous error
e1599b0c 15