rust/src/test/ui/type/type-ascription-with-fn-cal...

10 lines
130 B
Rust

// run-rustfix
#![feature(type_ascription)]
fn main() {
f() ;
f(); //~ ERROR expected type, found function
}
fn f() {}