]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-28971.rs
New upstream version 1.60.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-28971.rs
CommitLineData
92a42be0
SL
1enum Foo {
2 Bar(u8)
3}
4fn main(){
5 foo(|| {
6 match Foo::Bar(1) {
ff7c6d11 7 Foo::Baz(..) => (),
dfeec247 8 //~^ ERROR no variant or associated item named `Baz` found
92a42be0
SL
9 _ => (),
10 }
11 });
223e47cc
LB
12}
13
92a42be0
SL
14fn foo<F>(f: F) where F: FnMut() {
15 f();
223e47cc 16}