Files
rust/src/test/ui/parser/issue-22647.rs

16 lines
267 B
Rust
Raw Normal View History

fn main() {
2015-03-31 09:10:11 +03:00
let caller<F> = |f: F| //~ ERROR expected one of `:`, `;`, `=`, or `@`, found `<`
where F: Fn() -> i32
{
let x = f();
println!("Y {}",x);
return x;
};
caller(bar_handler);
}
fn bar_handler() -> i32 {
5
}