mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
1bfbac7903
Fixes #70082
11 lines
282 B
Rust
11 lines
282 B
Rust
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
|
|
}
|