]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-1871.rs
Merge commit 'f2cdd4a78d89c009342197cf5844a21f8aa813df' into sync_cg_clif-2022-04-22
[rust.git] / src / test / ui / issues / issue-1871.rs
1 // Tests that we don't generate a spurious error about f.honk's type
2 // being undeterminable
3 fn main() {
4   let f = 42;
5
6   let _g = if f < 5 {
7       f.honk() //~ ERROR no method named `honk` found
8   }
9   else {
10       ()
11   };
12 }