fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.6 KiB38 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 `Sub<{integer}>` is not implemented for `{float}`
25   = help: the following other types implement trait `Sub<Rhs>`:
26             <isize as Sub>
27             <isize as Sub<&isize>>
28             <i8 as Sub>
29             <i8 as Sub<&i8>>
30             <i16 as Sub>
31             <i16 as Sub<&i16>>
32             <i32 as Sub>
33             <i32 as Sub<&i32>>
34           and 48 others
35
36error: aborting due to 3 previous errors
37
38For more information about this error, try `rustc --explain E0277`.