rust/src/test/ui/match/match-fn-call.rs

13 lines
297 B
Rust
Raw Normal View History

2018-11-07 04:26:05 +00:00
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
_ => (),
}
}