]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-1871.rs
Enable full revision in const generics ui tests
[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 }