2012-11-16 21:22:48 -06:00
|
|
|
// Tests that we don't generate a spurious error about f.honk's type
|
|
|
|
// being undeterminable
|
2012-04-12 22:24:07 -05:00
|
|
|
fn main() {
|
|
|
|
let f = 42;
|
|
|
|
|
|
|
|
let _g = if f < 5 {
|
2015-05-03 00:30:59 -05:00
|
|
|
f.honk() //~ ERROR no method named `honk` found
|
2012-04-12 22:24:07 -05:00
|
|
|
}
|
|
|
|
else {
|
2012-11-16 21:22:48 -06:00
|
|
|
()
|
2012-04-12 22:24:07 -05:00
|
|
|
};
|
|
|
|
}
|