]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-1871.rs
Merge commit '0e87918536b9833bbc6c683d1f9d51ee2bf03ef1' into clippyup
[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 }