]> git.lizzy.rs Git - rust.git/blob - tests/ui/type/type-ascription-with-fn-call.rs
Rollup merge of #106664 - chenyukang:yukang/fix-106597-remove-lseek, r=cuviper
[rust.git] / tests / ui / type / type-ascription-with-fn-call.rs
1 // run-rustfix
2 #![feature(type_ascription)]
3
4 fn main() {
5     f()  :
6     f(); //~ ERROR expected type, found function
7 }
8
9 fn f() {}