]>
Commit | Line | Data |
---|---|---|
13cf67c4 XL |
1 | use std::path::Path; |
2 | ||
3 | fn main() { | |
4 | let path = Path::new("foo"); | |
5 | match path { | |
6 | Path::new("foo") => println!("foo"), | |
e74abb32 | 7 | //~^ ERROR expected tuple struct or tuple variant |
13cf67c4 | 8 | Path::new("bar") => println!("bar"), |
e74abb32 | 9 | //~^ ERROR expected tuple struct or tuple variant |
13cf67c4 XL |
10 | _ => (), |
11 | } | |
12 | } |