summaryrefslogtreecommitdiffstats
path: root/src/test/ui/const-generics/min_const_generics/invalid-patterns.64bit.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:18:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:18:58 +0000
commita4b7ed7a42c716ab9f05e351f003d589124fd55d (patch)
treeb620cd3f223850b28716e474e80c58059dca5dd4 /src/test/ui/const-generics/min_const_generics/invalid-patterns.64bit.stderr
parentAdding upstream version 1.67.1+dfsg1. (diff)
downloadrustc-a4b7ed7a42c716ab9f05e351f003d589124fd55d.tar.xz
rustc-a4b7ed7a42c716ab9f05e351f003d589124fd55d.zip
Adding upstream version 1.68.2+dfsg1.upstream/1.68.2+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/const-generics/min_const_generics/invalid-patterns.64bit.stderr')
-rw-r--r--src/test/ui/const-generics/min_const_generics/invalid-patterns.64bit.stderr62
1 files changed, 0 insertions, 62 deletions
diff --git a/src/test/ui/const-generics/min_const_generics/invalid-patterns.64bit.stderr b/src/test/ui/const-generics/min_const_generics/invalid-patterns.64bit.stderr
deleted file mode 100644
index be92429e3..000000000
--- a/src/test/ui/const-generics/min_const_generics/invalid-patterns.64bit.stderr
+++ /dev/null
@@ -1,62 +0,0 @@
-error[E0308]: mismatched types
- --> $DIR/invalid-patterns.rs:29:21
- |
-LL | get_flag::<false, 0xFF>();
- | ^^^^ expected `char`, found `u8`
-
-error[E0308]: mismatched types
- --> $DIR/invalid-patterns.rs:31:14
- |
-LL | get_flag::<7, 'c'>();
- | ^ expected `bool`, found integer
-
-error[E0308]: mismatched types
- --> $DIR/invalid-patterns.rs:33:14
- |
-LL | get_flag::<42, 0x5ad>();
- | ^^ expected `bool`, found integer
-
-error[E0308]: mismatched types
- --> $DIR/invalid-patterns.rs:33:18
- |
-LL | get_flag::<42, 0x5ad>();
- | ^^^^^ expected `char`, found `u8`
-
-error[E0080]: evaluation of constant value failed
- --> $DIR/invalid-patterns.rs:38:32
- |
-LL | get_flag::<false, { unsafe { char_raw.character } }>();
- | ^^^^^^^^^^^^^^^^^^ using uninitialized data, but this operation requires initialized memory
-
-error[E0080]: it is undefined behavior to use this value
- --> $DIR/invalid-patterns.rs:41:14
- |
-LL | get_flag::<{ unsafe { bool_raw.boolean } }, 'z'>();
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value: encountered 0x42, but expected a boolean
- |
- = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
- = note: the raw bytes of the constant (size: 1, align: 1) {
- 42 │ B
- }
-
-error[E0080]: it is undefined behavior to use this value
- --> $DIR/invalid-patterns.rs:43:14
- |
-LL | get_flag::<{ unsafe { bool_raw.boolean } }, { unsafe { char_raw.character } }>();
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value: encountered 0x42, but expected a boolean
- |
- = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
- = note: the raw bytes of the constant (size: 1, align: 1) {
- 42 │ B
- }
-
-error[E0080]: evaluation of constant value failed
- --> $DIR/invalid-patterns.rs:43:58
- |
-LL | get_flag::<{ unsafe { bool_raw.boolean } }, { unsafe { char_raw.character } }>();
- | ^^^^^^^^^^^^^^^^^^ using uninitialized data, but this operation requires initialized memory
-
-error: aborting due to 8 previous errors
-
-Some errors have detailed explanations: E0080, E0308.
-For more information about an error, try `rustc --explain E0080`.