]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/feature-self-return-type.stderr
Rollup merge of #106946 - dtolnay:hashlinecolumn, r=m-ou-se
[rust.git] / tests / ui / async-await / feature-self-return-type.stderr
1 error[E0597]: `bar` does not live long enough
2   --> $DIR/feature-self-return-type.rs:22:18
3    |
4 LL |     let x = {
5    |         - borrow later stored here
6 LL |         let bar = 22;
7 LL |         Foo::new(&bar).await
8    |                  ^^^^ borrowed value does not live long enough
9 LL |
10 LL |     };
11    |     - `bar` dropped here while still borrowed
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0597`.