]> git.proxmox.com Git - rustc.git/blob - src/test/ui/mismatched_types/issue-35030.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / mismatched_types / issue-35030.stderr
1 error[E0308]: mismatched types
2 --> $DIR/issue-35030.rs:9:14
3 |
4 LL | impl<bool> Parser<bool> for bool {
5 | ---- this type parameter
6 LL | fn parse(text: &str) -> Option<bool> {
7 LL | Some(true)
8 | ^^^^ expected type parameter `bool`, found `bool`
9 |
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
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0308`.