]> git.proxmox.com Git - rustc.git/blame - src/test/ui/match/match-fn-call.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / match / match-fn-call.rs
CommitLineData
13cf67c4
XL
1use std::path::Path;
2
3fn 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}