]> git.lizzy.rs Git - rust.git/blob - src/test/ui/fn-in-pat.rs
Merge commit '370c397ec9169809e5ad270079712e0043514240' into sync_cg_clif-2022-03-20
[rust.git] / src / test / 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() {}