This commit is contained in:
Esteban Küber 2018-05-25 21:57:02 -07:00
parent 6437295b17
commit 7dec8a4e99
5 changed files with 15 additions and 11 deletions

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
const UNIVERSAL_GRAVITATIONAL_CONSTANT = 6.674e11; // m³⋅kg⁻¹⋅s⁻²
const UNIVERSAL_GRAVITATIONAL_CONSTANT: f64 = 6.674e11; // m³⋅kg⁻¹⋅s⁻²
//~^ ERROR expected at least one digit in exponent
fn main() {}

View file

@ -1,12 +1,12 @@
error: expected at least one digit in exponent
--> $DIR/issue-49746-unicode-confusable-in-float-literal-expt.rs:11:48
--> $DIR/issue-49746-unicode-confusable-in-float-literal-expt.rs:11:53
|
LL | const UNIVERSAL_GRAVITATIONAL_CONSTANT = 6.674e11; // m³⋅kg⁻¹⋅s⁻²
| ^
LL | const UNIVERSAL_GRAVITATIONAL_CONSTANT: f64 = 6.674e11; // m³⋅kg⁻¹⋅s⁻²
| ^
help: Unicode character '' (Minus Sign) looks like '-' (Minus/Hyphen), but it is not
|
LL | const UNIVERSAL_GRAVITATIONAL_CONSTANT = 6.674e-11; // m³⋅kg⁻¹⋅s⁻²
| ^
LL | const UNIVERSAL_GRAVITATIONAL_CONSTANT: f64 = 6.674e-11; // m³⋅kg⁻¹⋅s⁻²
| ^
error: aborting due to previous error