Correctly note code as Ok not error for E0573

This commit is contained in:
Ryo Onodera 2019-10-20 15:40:44 +09:00
parent e66a628227
commit 101e1f6f8f
No known key found for this signature in database
GPG Key ID: 055C9BBD5C48930F

View File

@ -1682,7 +1682,7 @@ enum Wizard {
}
trait Isengard {
fn wizard(w: Wizard) { // error!
fn wizard(w: Wizard) { // ok!
match w {
Wizard::Saruman => {
// do something