]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type/type-ascription-with-fn-call.rs
Merge commit 'c19edfd71a1d0ddef86c2c67fdb40718d40a72b4' into sync_cg_clif-2022-07-25
[rust.git] / src / test / 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() {}