]> git.lizzy.rs Git - rust.git/blob - src/test/ui/match/match-join.rs
Auto merge of #106349 - LeSeulArtichaut:dyn-star-tracking-issue, r=jackh726
[rust.git] / src / test / ui / match / match-join.rs
1 // a good test that we merge paths correctly in the presence of a
2 // variable that's used before it's declared
3
4 fn my_panic() -> ! { panic!(); }
5
6 fn main() {
7     match true { false => { my_panic(); } true => { } }
8
9     println!("{}", x); //~ ERROR cannot find value `x` in this scope
10     let x: isize;
11 }