mirror of https://github.com/rust-lang/rust
12 lines
642 B
Rust
12 lines
642 B
Rust
//@ run-rustfix
|
|
|
|
fn main() {
|
|
2.0e1; //~ERROR `{integer}` is a primitive type and therefore doesn't have fields
|
|
2.0E1; //~ERROR `{integer}` is a primitive type and therefore doesn't have fields
|
|
2.0f32; //~ERROR `{integer}` is a primitive type and therefore doesn't have fields
|
|
2.0f64; //~ERROR `{integer}` is a primitive type and therefore doesn't have fields
|
|
2.0e+12; //~ERROR `{integer}` is a primitive type and therefore doesn't have fields
|
|
2.0e-12; //~ERROR `{integer}` is a primitive type and therefore doesn't have fields
|
|
2.0e1f32; //~ERROR `{integer}` is a primitive type and therefore doesn't have fields
|
|
}
|