rust/src/test/ui/match/match-fn-call.rs
2018-11-07 22:17:32 +08:00

13 lines
297 B
Rust

use std::path::Path;
fn main() {
let path = Path::new("foo");
match path {
Path::new("foo") => println!("foo"),
//~^ ERROR expected tuple struct/variant
Path::new("bar") => println!("bar"),
//~^ ERROR expected tuple struct/variant
_ => (),
}
}