rust/src/test/ui/issues/issue-5927.rs
2018-12-25 21:08:33 -07:00

7 lines
204 B
Rust

fn main() {
let z = match 3 {
x(1) => x(1) //~ ERROR cannot find tuple struct/variant `x` in this scope
//~^ ERROR cannot find function `x` in this scope
};
assert!(z == 3);
}