mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 15:32:06 +00:00
951f2d9ae2
This prevents a follow-up type error in a test, which seems fine.
20 lines
827 B
Plaintext
20 lines
827 B
Plaintext
error: expected at least one digit in exponent
|
||
--> $DIR/issue-49746-unicode-confusable-in-float-literal-expt.rs:1:47
|
||
|
|
||
LL | const UNIVERSAL_GRAVITATIONAL_CONSTANT: f64 = 6.674e−11; // m³⋅kg⁻¹⋅s⁻²
|
||
| ^^^^^^
|
||
|
||
error: unknown start of token: \u{2212}
|
||
--> $DIR/issue-49746-unicode-confusable-in-float-literal-expt.rs:1:53
|
||
|
|
||
LL | const UNIVERSAL_GRAVITATIONAL_CONSTANT: f64 = 6.674e−11; // m³⋅kg⁻¹⋅s⁻²
|
||
| ^
|
||
|
|
||
help: Unicode character '−' (Minus Sign) looks like '-' (Minus/Hyphen), but it is not
|
||
|
|
||
LL | const UNIVERSAL_GRAVITATIONAL_CONSTANT: f64 = 6.674e-11; // m³⋅kg⁻¹⋅s⁻²
|
||
| ~
|
||
|
||
error: aborting due to 2 previous errors
|
||
|