blob: d54d0a1a48a2d599f6dacaadcfc7fffd8d158319 (
plain)
1
2
3
4
5
6
7
8
9
10
|
fn main() {
// this closure is fine, and should not get any error annotations
let em = |v: f64| -> f64 { v };
let x: f64 = em(1i16.into());
let y: f64 = 0.01f64 * 1i16.into();
//~^ ERROR type annotations needed
//~| HELP try using a fully qualified path
}
|