]> git.lizzy.rs Git - rust.git/blob - src/test/ui/match/match-fn-call.rs
Auto merge of #106349 - LeSeulArtichaut:dyn-star-tracking-issue, r=jackh726
[rust.git] / src / test / ui / match / match-fn-call.rs
1 use std::path::Path;
2
3 fn main() {
4     let path = Path::new("foo");
5     match path {
6         Path::new("foo") => println!("foo"),
7         //~^ ERROR expected tuple struct or tuple variant
8         Path::new("bar") => println!("bar"),
9         //~^ ERROR expected tuple struct or tuple variant
10         _ => (),
11     }
12 }