blob: fb2d5a4ad2a2c48510dbcd564708a5ffb7e2a6fb [file] [log] [blame]
fn foo<U>(t: U) {
let y = t();
//~^ ERROR: expected function, found `U`
}
struct Bar;
pub fn some_func() {
let f = Bar();
//~^ ERROR: expected function, found `Bar`
}
fn main() {
foo(|| { 1 });
}