]> git.lizzy.rs Git - rust.git/blob - tests/ui/span/issue-40157.stderr
Optimize `TyKind::eq`.
[rust.git] / tests / 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    |                                   ---               ^^^^^^^^^^ - `foo` dropped here while still borrowed
6    |                                   |                 |
7    |                                   |                 borrowed value does not live long enough
8    |                                   binding `foo` declared here
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0597`.