]> git.lizzy.rs Git - rust.git/blob - tests/ui/fn-in-pat.rs
Rollup merge of #107769 - compiler-errors:pointer-like, r=eholk
[rust.git] / tests / ui / fn-in-pat.rs
1 struct A {}
2
3 impl A {
4     fn new() {}
5 }
6
7 fn hof<F>(_: F) where F: FnMut(()) {}
8
9 fn ice() {
10     hof(|c| match c {
11         A::new() => (), //~ ERROR expected tuple struct or tuple variant, found associated function
12         _ => ()
13     })
14 }
15
16 fn main() {}