]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/issue-40157.stderr
Rollup merge of #87922 - Manishearth:c-enum-target-spec, r=nagisa,eddyb
[rust.git] / src / test / ui / span / issue-40157.stderr
1 error[E0597]: `foo` does not live long enough
2   --> $DIR/issue-40157.rs:2:53
3    |
4 LL |     {println!("{:?}", match { let foo = vec![1, 2]; foo.get(1) } { x => x });}
5    |                             ------------------------^^^---------
6    |                             |                       |          |
7    |                             |                       |          `foo` dropped here while still borrowed
8    |                             |                       borrowed value does not live long enough
9    |                             borrow later used here
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0597`.