summaryrefslogtreecommitdiffstats
path: root/tests/ui/did_you_mean/issue-103909.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 /tests/ui/did_you_mean/issue-103909.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 'tests/ui/did_you_mean/issue-103909.stderr')
-rw-r--r--tests/ui/did_you_mean/issue-103909.stderr26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/ui/did_you_mean/issue-103909.stderr b/tests/ui/did_you_mean/issue-103909.stderr
new file mode 100644
index 000000000..864101747
--- /dev/null
+++ b/tests/ui/did_you_mean/issue-103909.stderr
@@ -0,0 +1,26 @@
+error[E0425]: cannot find value `err` in this scope
+ --> $DIR/issue-103909.rs:5:12
+ |
+LL | if Err(err) = File::open("hello.txt") {
+ | ^^^ not found in this scope
+ |
+help: you might have meant to use pattern matching
+ |
+LL | if let Err(err) = File::open("hello.txt") {
+ | +++
+
+error[E0308]: mismatched types
+ --> $DIR/issue-103909.rs:5:8
+ |
+LL | if Err(err) = File::open("hello.txt") {
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `bool`, found `()`
+ |
+help: consider adding `let`
+ |
+LL | if let Err(err) = File::open("hello.txt") {
+ | +++
+
+error: aborting due to 2 previous errors
+
+Some errors have detailed explanations: E0308, E0425.
+For more information about an error, try `rustc --explain E0308`.