fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
1.3 KiB28 linesraw
1error: expected at least one digit in exponent
2  --> $DIR/issue-49746-unicode-confusable-in-float-literal-expt.rs:1:47
3   |
4LL | const UNIVERSAL_GRAVITATIONAL_CONSTANT: f64 = 6.674e−11; // m³⋅kg⁻¹⋅s⁻²
5   |                                               ^^^^^^
6
7error: unknown start of token: \u{2212}
8  --> $DIR/issue-49746-unicode-confusable-in-float-literal-expt.rs:1:53
9   |
10LL | const UNIVERSAL_GRAVITATIONAL_CONSTANT: f64 = 6.674e−11; // m³⋅kg⁻¹⋅s⁻²
11   |                                                     ^
12   |
13help: Unicode character '−' (Minus Sign) looks like '-' (Minus/Hyphen), but it is not
14   |
15LL | const UNIVERSAL_GRAVITATIONAL_CONSTANT: f64 = 6.674e-11; // m³⋅kg⁻¹⋅s⁻²
16   |                                                     ^
17
18error[E0277]: cannot subtract `{integer}` from `{float}`
19  --> $DIR/issue-49746-unicode-confusable-in-float-literal-expt.rs:1:53
20   |
21LL | const UNIVERSAL_GRAVITATIONAL_CONSTANT: f64 = 6.674e−11; // m³⋅kg⁻¹⋅s⁻²
22   |                                                     ^ no implementation for `{float} - {integer}`
23   |
24   = help: the trait `std::ops::Sub<{integer}>` is not implemented for `{float}`
25
26error: aborting due to 3 previous errors
27
28For more information about this error, try `rustc --explain E0277`.