Error message for parsing guards

This commit is contained in:
greg 2018-08-19 15:12:34 -07:00
parent 04ea8c5ebc
commit 0e914cf057

View File

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