rust/tests/ui/span/issue-40157.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

5 lines
136 B
Rust
Raw Normal View History

2017-03-05 23:51:46 -03:00
fn main () {
{println!("{:?}", match { let foo = vec![1, 2]; foo.get(1) } { x => x });}
2017-11-20 13:13:27 +01:00
//~^ ERROR does not live long enough
2017-03-05 23:51:46 -03:00
}