mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
16 lines
252 B
Rust
16 lines
252 B
Rust
struct A {}
|
|
|
|
impl A {
|
|
fn new() {}
|
|
}
|
|
|
|
fn hof<F>(_: F) where F: FnMut(()) {}
|
|
|
|
fn ice() {
|
|
hof(|c| match c {
|
|
A::new() => (), //~ ERROR expected tuple struct or tuple variant, found associated function
|
|
_ => ()
|
|
})
|
|
}
|
|
|
|
fn main() {}
|