Error message for parsing guards
This commit is contained in:
parent
04ea8c5ebc
commit
0e914cf057
@ -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)),
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user