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

error: aborting due to 1 previous error

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