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-06 02:51:46 +00:00
fn main () {
{println!("{:?}", match { let foo = vec![1, 2]; foo.get(1) } { x => x });}
2017-11-20 12:13:27 +00:00
//~^ ERROR does not live long enough
2017-03-06 02:51:46 +00:00
}