]> git.proxmox.com Git - rustc.git/blame - src/test/ui/fn-in-pat.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / fn-in-pat.rs
CommitLineData
532ac7d7
XL
1struct A {}
2
3impl A {
4 fn new() {}
5}
6
7fn hof<F>(_: F) where F: FnMut(()) {}
8
9fn ice() {
10 hof(|c| match c {
ba9703b0 11 A::new() => (), //~ ERROR expected tuple struct or tuple variant, found associated function
532ac7d7
XL
12 _ => ()
13 })
14}
15
16fn main() {}