]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-10969.rs
Rollup merge of #107168 - Nilstrieb:if-a-tait-falls-in-the-forest,can-we-know-it...
[rust.git] / tests / ui / typeck / issue-10969.rs
1 fn func(i: i32) {
2     i(); //~ERROR expected function, found `i32`
3 }
4 fn main() {
5     let i = 0i32;
6     i(); //~ERROR expected function, found `i32`
7 }