From: Oliver Scherer Date: Tue, 11 Dec 2018 08:05:06 +0000 (+0100) Subject: Diagnostics improvement! X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=7d1b19cfe3552345d35c44745971c7df99a970bb;p=rust.git Diagnostics improvement! --- diff --git a/src/test/run-pass/ctfe/references.rs b/src/test/run-pass/ctfe/references.rs index 946ed246bb0..d5ab8dd7a2a 100644 --- a/src/test/run-pass/ctfe/references.rs +++ b/src/test/run-pass/ctfe/references.rs @@ -28,9 +28,10 @@ fn main() { _ => panic!("c"), } + #[allow(unreachable_patterns)] match &43 { &42 => panic!(), - BOO => panic!(), + BOO => panic!(), // pattern is unreachable _ => println!("d"), } }