mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 16:57:03 +00:00
11 lines
184 B
Rust
11 lines
184 B
Rust
pub enum Sexpr<'a, S> {
|
|
Ident(&'a mut S),
|
|
}
|
|
|
|
fn map<Foo, T, F: FnOnce(&Foo) -> T>(f: F) {}
|
|
|
|
fn main() {
|
|
map(Sexpr::Ident);
|
|
//~^ ERROR type mismatch in function arguments
|
|
}
|