summaryrefslogtreecommitdiffstats
path: root/src/test/ui/error-festival.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 /src/test/ui/error-festival.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 'src/test/ui/error-festival.stderr')
-rw-r--r--src/test/ui/error-festival.stderr89
1 files changed, 0 insertions, 89 deletions
diff --git a/src/test/ui/error-festival.stderr b/src/test/ui/error-festival.stderr
deleted file mode 100644
index 43122c13e..000000000
--- a/src/test/ui/error-festival.stderr
+++ /dev/null
@@ -1,89 +0,0 @@
-error[E0425]: cannot find value `y` in this scope
- --> $DIR/error-festival.rs:14:5
- |
-LL | y = 2;
- | ^ help: a local variable with a similar name exists: `x`
-
-error[E0603]: constant `FOO` is private
- --> $DIR/error-festival.rs:22:10
- |
-LL | foo::FOO;
- | ^^^ private constant
- |
-note: the constant `FOO` is defined here
- --> $DIR/error-festival.rs:7:5
- |
-LL | const FOO: u32 = 0;
- | ^^^^^^^^^^^^^^^^^^^
-
-error[E0368]: binary assignment operation `+=` cannot be applied to type `&str`
- --> $DIR/error-festival.rs:12:5
- |
-LL | x += 2;
- | -^^^^^
- | |
- | cannot use `+=` on type `&str`
-
-error[E0599]: no method named `z` found for reference `&str` in the current scope
- --> $DIR/error-festival.rs:16:7
- |
-LL | x.z();
- | ^ method not found in `&str`
-
-error[E0600]: cannot apply unary operator `!` to type `Question`
- --> $DIR/error-festival.rs:19:5
- |
-LL | !Question::Yes;
- | ^^^^^^^^^^^^^^ cannot apply unary operator `!`
- |
-note: an implementation of `Not` might be missing for `Question`
- --> $DIR/error-festival.rs:1:1
- |
-LL | enum Question {
- | ^^^^^^^^^^^^^ must implement `Not`
-note: the following trait must be implemented
- --> $SRC_DIR/core/src/ops/bit.rs:LL:COL
- |
-LL | pub trait Not {
- | ^^^^^^^^^^^^^
-
-error[E0604]: only `u8` can be cast as `char`, not `u32`
- --> $DIR/error-festival.rs:25:5
- |
-LL | 0u32 as char;
- | ^^^^^^^^^^^^
- | |
- | invalid cast
- | help: try `char::from_u32` instead: `char::from_u32(0u32)`
-
-error[E0605]: non-primitive cast: `u8` as `Vec<u8>`
- --> $DIR/error-festival.rs:29:5
- |
-LL | x as Vec<u8>;
- | ^^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object
-
-error[E0054]: cannot cast as `bool`
- --> $DIR/error-festival.rs:33:24
- |
-LL | let x_is_nonzero = x as bool;
- | ^^^^^^^^^ help: compare with zero instead: `x != 0`
-
-error[E0606]: casting `&u8` as `u32` is invalid
- --> $DIR/error-festival.rs:37:18
- |
-LL | let y: u32 = x as u32;
- | -^^^^^^^
- | |
- | cannot cast `&u8` as `u32`
- | help: dereference the expression: `*x`
-
-error[E0607]: cannot cast thin pointer `*const u8` to fat pointer `*const [u8]`
- --> $DIR/error-festival.rs:41:5
- |
-LL | v as *const [u8];
- | ^^^^^^^^^^^^^^^^
-
-error: aborting due to 10 previous errors
-
-Some errors have detailed explanations: E0054, E0368, E0425, E0599, E0600, E0603, E0604, E0605, E0606...
-For more information about an error, try `rustc --explain E0054`.