]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-78115.rs
Auto merge of #79113 - andjo403:raw_vec_ptr, r=m-ou-se
[rust.git] / src / test / ui / issues / issue-78115.rs
1 // Regression test for issue #78115: "ICE: variable should be placed in scope earlier"
2
3 // check-pass
4 // edition:2018
5
6 #[allow(dead_code)]
7 struct Foo {
8     a: ()
9 }
10
11 async fn _bar() {
12     let foo = Foo { a: () };
13     match foo {
14         Foo { a: _a } | Foo { a: _a } if true => {}
15         _ => {}
16     }
17 }
18
19 fn main() {}