summaryrefslogtreecommitdiffstats
path: root/src/test/ui/closures/2229_closure_analysis/match/non-exhaustive-match.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/closures/2229_closure_analysis/match/non-exhaustive-match.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/closures/2229_closure_analysis/match/non-exhaustive-match.stderr')
-rw-r--r--src/test/ui/closures/2229_closure_analysis/match/non-exhaustive-match.stderr70
1 files changed, 0 insertions, 70 deletions
diff --git a/src/test/ui/closures/2229_closure_analysis/match/non-exhaustive-match.stderr b/src/test/ui/closures/2229_closure_analysis/match/non-exhaustive-match.stderr
deleted file mode 100644
index 3a5fad154..000000000
--- a/src/test/ui/closures/2229_closure_analysis/match/non-exhaustive-match.stderr
+++ /dev/null
@@ -1,70 +0,0 @@
-error[E0004]: non-exhaustive patterns: `L1::B` not covered
- --> $DIR/non-exhaustive-match.rs:26:25
- |
-LL | let _b = || { match l1 { L1::A => () } };
- | ^^ pattern `L1::B` not covered
- |
-note: `L1` defined here
- --> $DIR/non-exhaustive-match.rs:12:14
- |
-LL | enum L1 { A, B }
- | -- ^ not covered
- = note: the matched value is of type `L1`
-help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
- |
-LL | let _b = || { match l1 { L1::A => (), L1::B => todo!() } };
- | ++++++++++++++++++
-
-error[E0004]: non-exhaustive patterns: type `E1` is non-empty
- --> $DIR/non-exhaustive-match.rs:37:25
- |
-LL | let _d = || { match e1 {} };
- | ^^
- |
-note: `E1` defined here
- --> $DIR/auxiliary/match_non_exhaustive_lib.rs:2:1
- |
-LL | pub enum E1 {}
- | ^^^^^^^^^^^
- = note: the matched value is of type `E1`, which is marked as non-exhaustive
-help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown
- |
-LL ~ let _d = || { match e1 {
-LL + _ => todo!(),
-LL ~ } };
- |
-
-error[E0004]: non-exhaustive patterns: `_` not covered
- --> $DIR/non-exhaustive-match.rs:39:25
- |
-LL | let _e = || { match e2 { E2::A => (), E2::B => () } };
- | ^^ pattern `_` not covered
- |
-note: `E2` defined here
- --> $DIR/auxiliary/match_non_exhaustive_lib.rs:5:1
- |
-LL | pub enum E2 { A, B }
- | ^^^^^^^^^^^
- = note: the matched value is of type `E2`, which is marked as non-exhaustive
-help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
- |
-LL | let _e = || { match e2 { E2::A => (), E2::B => (), _ => todo!() } };
- | ++++++++++++++
-
-error[E0505]: cannot move out of `e3` because it is borrowed
- --> $DIR/non-exhaustive-match.rs:46:22
- |
-LL | let _g = || { match e3 { E3::C => (), _ => () } };
- | -- -- borrow occurs due to use in closure
- | |
- | borrow of `e3` occurs here
-LL | let mut mut_e3 = e3;
- | ^^ move out of `e3` occurs here
-LL |
-LL | _g();
- | -- borrow later used here
-
-error: aborting due to 4 previous errors
-
-Some errors have detailed explanations: E0004, E0505.
-For more information about an error, try `rustc --explain E0004`.