rust/src/test/ui/issues/issue-5927.rs

8 lines
204 B
Rust
Raw Normal View History

2013-04-18 15:49:28 -07:00
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
2013-04-18 15:49:28 -07:00
};
2015-12-11 20:59:11 +13:00
assert!(z == 3);
2013-04-18 15:49:28 -07:00
}