Error message for parsing guards

This commit is contained in:
greg 2018-08-19 15:12:34 -07:00
parent 04ea8c5ebc
commit 0e914cf057
1 changed files with 1 additions and 1 deletions

View File

@ -710,7 +710,7 @@ impl Parser {
let pat = self.pattern()?;
Guard::Pat(pat)
},
_ => unimplemented!() //TODO fix
e => return ParseError::new(&format!("{:?} not valid in pattern guard", e)),
})
});