]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/issue-51055-missing-semicolon-between-call-and-tuple.rs
Account for method call and indexing when looking for inner-most path in expression
[rust.git] / tests / ui / suggestions / issue-51055-missing-semicolon-between-call-and-tuple.rs
1 fn vindictive() -> bool { true }
2
3 fn perfidy() -> (i32, i32) {
4     vindictive() //~ ERROR expected function, found `bool`
5     (1, 2)
6 }
7
8 fn main() {}