]> git.proxmox.com Git - rustc.git/blob - src/test/ui/did_you_mean/issue-49746-unicode-confusable-in-float-literal-expt.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / did_you_mean / issue-49746-unicode-confusable-in-float-literal-expt.stderr
1 error: expected at least one digit in exponent
2 --> $DIR/issue-49746-unicode-confusable-in-float-literal-expt.rs:1:47
3 |
4 LL | const UNIVERSAL_GRAVITATIONAL_CONSTANT: f64 = 6.674e−11; // m³⋅kg⁻¹⋅s⁻²
5 | ^^^^^^
6
7 error: unknown start of token: \u{2212}
8 --> $DIR/issue-49746-unicode-confusable-in-float-literal-expt.rs:1:53
9 |
10 LL | const UNIVERSAL_GRAVITATIONAL_CONSTANT: f64 = 6.674e−11; // m³⋅kg⁻¹⋅s⁻²
11 | ^
12 |
13 help: Unicode character '−' (Minus Sign) looks like '-' (Minus/Hyphen), but it is not
14 |
15 LL | const UNIVERSAL_GRAVITATIONAL_CONSTANT: f64 = 6.674e-11; // m³⋅kg⁻¹⋅s⁻²
16 | ~
17
18 error[E0277]: cannot subtract `{integer}` from `{float}`
19 --> $DIR/issue-49746-unicode-confusable-in-float-literal-expt.rs:1:53
20 |
21 LL | 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 <&'a f32 as Sub<f32>>
27 <&'a f64 as Sub<f64>>
28 <&'a i128 as Sub<i128>>
29 <&'a i16 as Sub<i16>>
30 <&'a i32 as Sub<i32>>
31 <&'a i64 as Sub<i64>>
32 <&'a i8 as Sub<i8>>
33 <&'a isize as Sub<isize>>
34 and 48 others
35
36 error: aborting due to 3 previous errors
37
38 For more information about this error, try `rustc --explain E0277`.