From 101e1f6f8f92c896ecef76dcc0a51d782c423de1 Mon Sep 17 00:00:00 2001 From: Ryo Onodera Date: Sun, 20 Oct 2019 15:40:44 +0900 Subject: [PATCH] Correctly note code as Ok not error for E0573 --- src/librustc_resolve/error_codes.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_resolve/error_codes.rs b/src/librustc_resolve/error_codes.rs index cd6189c681d..b82cba8c83d 100644 --- a/src/librustc_resolve/error_codes.rs +++ b/src/librustc_resolve/error_codes.rs @@ -1682,7 +1682,7 @@ enum Wizard { } trait Isengard { - fn wizard(w: Wizard) { // error! + fn wizard(w: Wizard) { // ok! match w { Wizard::Saruman => { // do something