summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/decimal_literal_representation.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
commit698f8c2f01ea549d77d7dc3338a12e04c11057b9 (patch)
tree173a775858bd501c378080a10dca74132f05bc50 /src/tools/clippy/tests/ui/decimal_literal_representation.stderr
parentInitial commit. (diff)
downloadrustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.tar.xz
rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.zip
Adding upstream version 1.64.0+dfsg1.upstream/1.64.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/tools/clippy/tests/ui/decimal_literal_representation.stderr')
-rw-r--r--src/tools/clippy/tests/ui/decimal_literal_representation.stderr46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/decimal_literal_representation.stderr b/src/tools/clippy/tests/ui/decimal_literal_representation.stderr
new file mode 100644
index 000000000..8d50c8f83
--- /dev/null
+++ b/src/tools/clippy/tests/ui/decimal_literal_representation.stderr
@@ -0,0 +1,46 @@
+error: integer literal has a better hexadecimal representation
+ --> $DIR/decimal_literal_representation.rs:18:9
+ |
+LL | 32_773, // 0x8005
+ | ^^^^^^ help: consider: `0x8005`
+ |
+ = note: `-D clippy::decimal-literal-representation` implied by `-D warnings`
+
+error: integer literal has a better hexadecimal representation
+ --> $DIR/decimal_literal_representation.rs:19:9
+ |
+LL | 65_280, // 0xFF00
+ | ^^^^^^ help: consider: `0xFF00`
+
+error: integer literal has a better hexadecimal representation
+ --> $DIR/decimal_literal_representation.rs:20:9
+ |
+LL | 2_131_750_927, // 0x7F0F_F00F
+ | ^^^^^^^^^^^^^ help: consider: `0x7F0F_F00F`
+
+error: integer literal has a better hexadecimal representation
+ --> $DIR/decimal_literal_representation.rs:21:9
+ |
+LL | 2_147_483_647, // 0x7FFF_FFFF
+ | ^^^^^^^^^^^^^ help: consider: `0x7FFF_FFFF`
+
+error: integer literal has a better hexadecimal representation
+ --> $DIR/decimal_literal_representation.rs:23:9
+ |
+LL | 4_042_322_160, // 0xF0F0_F0F0
+ | ^^^^^^^^^^^^^ help: consider: `0xF0F0_F0F0`
+
+error: integer literal has a better hexadecimal representation
+ --> $DIR/decimal_literal_representation.rs:24:9
+ |
+LL | 32_773usize, // 0x8005_usize
+ | ^^^^^^^^^^^ help: consider: `0x8005_usize`
+
+error: integer literal has a better hexadecimal representation
+ --> $DIR/decimal_literal_representation.rs:25:9
+ |
+LL | 2_131_750_927isize, // 0x7F0F_F00F_isize
+ | ^^^^^^^^^^^^^^^^^^ help: consider: `0x7F0F_F00F_isize`
+
+error: aborting due to 7 previous errors
+