summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/lint-type-overflow.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
commit64d98f8ee037282c35007b64c2649055c56af1db (patch)
tree5492bcf97fce41ee1c0b1cc2add283f3e66cdab0 /src/test/ui/lint/lint-type-overflow.stderr
parentAdding debian version 1.67.1+dfsg1-1. (diff)
downloadrustc-64d98f8ee037282c35007b64c2649055c56af1db.tar.xz
rustc-64d98f8ee037282c35007b64c2649055c56af1db.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/lint/lint-type-overflow.stderr')
-rw-r--r--src/test/ui/lint/lint-type-overflow.stderr167
1 files changed, 0 insertions, 167 deletions
diff --git a/src/test/ui/lint/lint-type-overflow.stderr b/src/test/ui/lint/lint-type-overflow.stderr
deleted file mode 100644
index 48d8228b8..000000000
--- a/src/test/ui/lint/lint-type-overflow.stderr
+++ /dev/null
@@ -1,167 +0,0 @@
-error: literal out of range for `u8`
- --> $DIR/lint-type-overflow.rs:10:18
- |
-LL | let x1: u8 = 256;
- | ^^^
- |
- = note: the literal `256` does not fit into the type `u8` whose range is `0..=255`
-note: the lint level is defined here
- --> $DIR/lint-type-overflow.rs:1:9
- |
-LL | #![deny(overflowing_literals)]
- | ^^^^^^^^^^^^^^^^^^^^
-
-error: literal out of range for `u8`
- --> $DIR/lint-type-overflow.rs:13:14
- |
-LL | let x1 = 256_u8;
- | ^^^^^^
- |
- = note: the literal `256_u8` does not fit into the type `u8` whose range is `0..=255`
-
-error: literal out of range for `i8`
- --> $DIR/lint-type-overflow.rs:16:18
- |
-LL | let x1: i8 = 128;
- | ^^^
- |
- = note: the literal `128` does not fit into the type `i8` whose range is `-128..=127`
- = help: consider using the type `u8` instead
-
-error: literal out of range for `i8`
- --> $DIR/lint-type-overflow.rs:18:19
- |
-LL | let x3: i8 = -129;
- | ^^^
- |
- = note: the literal `129` does not fit into the type `i8` whose range is `-128..=127`
- = help: consider using the type `i16` instead
-
-error: literal out of range for `i8`
- --> $DIR/lint-type-overflow.rs:19:19
- |
-LL | let x3: i8 = -(129);
- | ^^^^^
- |
- = note: the literal `129` does not fit into the type `i8` whose range is `-128..=127`
- = help: consider using the type `i16` instead
-
-error: literal out of range for `i8`
- --> $DIR/lint-type-overflow.rs:20:20
- |
-LL | let x3: i8 = -{129};
- | ^^^
- |
- = note: the literal `129` does not fit into the type `i8` whose range is `-128..=127`
- = help: consider using the type `u8` instead
-
-error: literal out of range for `i8`
- --> $DIR/lint-type-overflow.rs:22:10
- |
-LL | test(1000);
- | ^^^^
- |
- = note: the literal `1000` does not fit into the type `i8` whose range is `-128..=127`
- = help: consider using the type `i16` instead
-
-error: literal out of range for `i8`
- --> $DIR/lint-type-overflow.rs:24:13
- |
-LL | let x = 128_i8;
- | ^^^^^^
- |
- = note: the literal `128_i8` does not fit into the type `i8` whose range is `-128..=127`
- = help: consider using the type `u8` instead
-
-error: literal out of range for `i8`
- --> $DIR/lint-type-overflow.rs:28:14
- |
-LL | let x = -129_i8;
- | ^^^^^^
- |
- = note: the literal `129_i8` does not fit into the type `i8` whose range is `-128..=127`
- = help: consider using the type `i16` instead
-
-error: literal out of range for `i32`
- --> $DIR/lint-type-overflow.rs:32:18
- |
-LL | let x: i32 = 2147483648;
- | ^^^^^^^^^^
- |
- = note: the literal `2147483648` does not fit into the type `i32` whose range is `-2147483648..=2147483647`
- = help: consider using the type `u32` instead
-
-error: literal out of range for `i32`
- --> $DIR/lint-type-overflow.rs:33:13
- |
-LL | let x = 2147483648_i32;
- | ^^^^^^^^^^^^^^
- |
- = note: the literal `2147483648_i32` does not fit into the type `i32` whose range is `-2147483648..=2147483647`
- = help: consider using the type `u32` instead
-
-error: literal out of range for `i32`
- --> $DIR/lint-type-overflow.rs:36:19
- |
-LL | let x: i32 = -2147483649;
- | ^^^^^^^^^^
- |
- = note: the literal `2147483649` does not fit into the type `i32` whose range is `-2147483648..=2147483647`
- = help: consider using the type `i64` instead
-
-error: literal out of range for `i32`
- --> $DIR/lint-type-overflow.rs:37:14
- |
-LL | let x = -2147483649_i32;
- | ^^^^^^^^^^^^^^
- |
- = note: the literal `2147483649_i32` does not fit into the type `i32` whose range is `-2147483648..=2147483647`
- = help: consider using the type `i64` instead
-
-error: literal out of range for `i32`
- --> $DIR/lint-type-overflow.rs:38:13
- |
-LL | let x = 2147483648;
- | ^^^^^^^^^^
- |
- = note: the literal `2147483648` does not fit into the type `i32` whose range is `-2147483648..=2147483647`
- = help: consider using the type `u32` instead
-
-error: literal out of range for `i64`
- --> $DIR/lint-type-overflow.rs:40:13
- |
-LL | let x = 9223372036854775808_i64;
- | ^^^^^^^^^^^^^^^^^^^^^^^
- |
- = note: the literal `9223372036854775808_i64` does not fit into the type `i64` whose range is `-9223372036854775808..=9223372036854775807`
- = help: consider using the type `u64` instead
-
-error: literal out of range for `i64`
- --> $DIR/lint-type-overflow.rs:42:13
- |
-LL | let x = 18446744073709551615_i64;
- | ^^^^^^^^^^^^^^^^^^^^^^^^
- |
- = note: the literal `18446744073709551615_i64` does not fit into the type `i64` whose range is `-9223372036854775808..=9223372036854775807`
- = help: consider using the type `u64` instead
-
-error: literal out of range for `i64`
- --> $DIR/lint-type-overflow.rs:43:19
- |
-LL | let x: i64 = -9223372036854775809;
- | ^^^^^^^^^^^^^^^^^^^
- |
- = note: the literal `9223372036854775809` does not fit into the type `i64` whose range is `-9223372036854775808..=9223372036854775807`
- = help: consider using the type `i128` instead
-
-error: literal out of range for `i64`
- --> $DIR/lint-type-overflow.rs:44:14
- |
-LL | let x = -9223372036854775809_i64;
- | ^^^^^^^^^^^^^^^^^^^^^^^
- |
- = note: the literal `9223372036854775809_i64` does not fit into the type `i64` whose range is `-9223372036854775808..=9223372036854775807`
- = help: consider using the type `i128` instead
-
-error: aborting due to 18 previous errors
-