mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 21:15:18 +03:00
9 lines
210 B
Rust
9 lines
210 B
Rust
fn main() {
|
|
let mut x = 2;
|
|
x = 5.0;
|
|
//~^ ERROR mismatched types
|
|
//~| expected type `{integer}`
|
|
//~| found type `{float}`
|
|
//~| expected integral variable, found floating-point variable
|
|
}
|