summaryrefslogtreecommitdiffstats
path: root/src/test/ui/async-await/feature-self-return-type.stderr
blob: 8924683684fb48169d123b1cae8de2a8a9b5518d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error[E0597]: `bar` does not live long enough
  --> $DIR/feature-self-return-type.rs:22:18
   |
LL |     let x = {
   |         - borrow later stored here
LL |         let bar = 22;
LL |         Foo::new(&bar).await
   |                  ^^^^ borrowed value does not live long enough
LL |
LL |     };
   |     - `bar` dropped here while still borrowed

error: aborting due to previous error

For more information about this error, try `rustc --explain E0597`.