1 error[E0308]: mismatched types
2 --> $DIR/issue-35030.rs:9:14
4 LL | impl<bool> Parser<bool> for bool {
5 | ---- this type parameter
6 LL | fn parse(text: &str) -> Option<bool> {
8 | ^^^^ expected type parameter `bool`, found `bool`
10 = note: expected type parameter `bool` (type parameter `bool`)
11 found type `bool` (`bool`)
12 = help: type parameters must be constrained to match other types
13 = note: for more information, visit https://doc.rust-lang.org/book/ch10-02-traits.html#traits-as-parameters
15 error: aborting due to previous error
17 For more information about this error, try `rustc --explain E0308`.