summaryrefslogtreecommitdiffstats
path: root/tests/ui/did_you_mean/issue-49746-unicode-confusable-in-float-literal-expt.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
commit218caa410aa38c29984be31a5229b9fa717560ee (patch)
treec54bd55eeb6e4c508940a30e94c0032fbd45d677 /tests/ui/did_you_mean/issue-49746-unicode-confusable-in-float-literal-expt.stderr
parentReleasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff)
downloadrustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz
rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/did_you_mean/issue-49746-unicode-confusable-in-float-literal-expt.stderr')
-rw-r--r--tests/ui/did_you_mean/issue-49746-unicode-confusable-in-float-literal-expt.stderr38
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/ui/did_you_mean/issue-49746-unicode-confusable-in-float-literal-expt.stderr b/tests/ui/did_you_mean/issue-49746-unicode-confusable-in-float-literal-expt.stderr
new file mode 100644
index 000000000..81f3f2694
--- /dev/null
+++ b/tests/ui/did_you_mean/issue-49746-unicode-confusable-in-float-literal-expt.stderr
@@ -0,0 +1,38 @@
+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[E0277]: cannot subtract `{integer}` from `{float}` in const contexts
+ --> $DIR/issue-49746-unicode-confusable-in-float-literal-expt.rs:1:53
+ |
+LL | const UNIVERSAL_GRAVITATIONAL_CONSTANT: f64 = 6.674e−11; // m³⋅kg⁻¹⋅s⁻²
+ | ^ no implementation for `{float} - {integer}`
+ |
+ = help: the trait `~const Sub<{integer}>` is not implemented for `{float}`
+ = help: the following other types implement trait `Sub<Rhs>`:
+ <&'a f32 as Sub<f32>>
+ <&'a f64 as Sub<f64>>
+ <&'a i128 as Sub<i128>>
+ <&'a i16 as Sub<i16>>
+ <&'a i32 as Sub<i32>>
+ <&'a i64 as Sub<i64>>
+ <&'a i8 as Sub<i8>>
+ <&'a isize as Sub<isize>>
+ and 48 others
+
+error: aborting due to 3 previous errors
+
+For more information about this error, try `rustc --explain E0277`.