]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/issue-5927.rs
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / tests / ui / resolve / issue-5927.rs
1 fn main() {
2     let z = match 3 {
3         x(1) => x(1) //~ ERROR cannot find tuple struct or tuple variant `x` in this scope
4         //~^ ERROR cannot find function `x` in this scope
5     };
6     assert!(z == 3);
7 }