]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/no-hex-float-literal.rs
Rollup merge of #107331 - GuillaumeGomez:cleanup-js, r=notriddle
[rust.git] / tests / ui / parser / no-hex-float-literal.rs
1 fn main() {
2     0xABC.Df;
3     //~^ ERROR `{integer}` is a primitive type and therefore doesn't have fields
4     0x567.89;
5     //~^ ERROR hexadecimal float literal is not supported
6     0xDEAD.BEEFp-2f;
7     //~^ ERROR invalid suffix `f` for float literal
8     //~| ERROR `{integer}` is a primitive type and therefore doesn't have fields
9 }