From 25964b541e5671de044fd01d058a45bb92b75d1e Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Mon, 19 Aug 2024 20:51:21 +0200 Subject: Reword the "unreachable pattern" explanations --- tests/ui/error-codes/E0001.stderr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/ui/error-codes') diff --git a/tests/ui/error-codes/E0001.stderr b/tests/ui/error-codes/E0001.stderr index 40008230ec8..30d0df960f3 100644 --- a/tests/ui/error-codes/E0001.stderr +++ b/tests/ui/error-codes/E0001.stderr @@ -2,9 +2,9 @@ error: unreachable pattern --> $DIR/E0001.rs:8:9 | LL | _ => {/* ... */} - | ^ unreachable pattern + | ^ no value can reach this | -note: these patterns collectively make the last one unreachable +note: multiple earlier patterns match some of the same values --> $DIR/E0001.rs:8:9 | LL | Some(_) => {/* ... */} -- cgit 1.4.1-3-g733a5