2013-04-18 15:49:28 -07:00
|
|
|
fn main() {
|
|
|
|
let z = match 3 {
|
2017-01-12 01:18:08 +03:00
|
|
|
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
|
|
|
}
|