X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=src%2Ftest%2Fui%2Fmismatched_types%2Fissue-35030.stderr;h=9f4e4398984aed92cd5507aafdb11c567b9f0964;hb=f9f354fc89474a056b6c177aab976167a2d807c8;hp=4a9afb9d2494e615b440d64df730b3b1dc64553c;hpb=e1599b0ce6f4f545e4363863ff4f592271300b3c;p=rustc.git diff --git a/src/test/ui/mismatched_types/issue-35030.stderr b/src/test/ui/mismatched_types/issue-35030.stderr index 4a9afb9d24..9f4e439898 100644 --- a/src/test/ui/mismatched_types/issue-35030.stderr +++ b/src/test/ui/mismatched_types/issue-35030.stderr @@ -1,13 +1,14 @@ error[E0308]: mismatched types --> $DIR/issue-35030.rs:9:14 | +LL | impl Parser for bool { + | ---- this type parameter +LL | fn parse(text: &str) -> Option { LL | Some(true) - | ^^^^ expected type parameter, found bool + | ^^^^ expected type parameter `bool`, found `bool` | - = note: expected type `bool` (type parameter) - found type `bool` (bool) - = help: type parameters must be constrained to match other types - = note: for more information, visit https://doc.rust-lang.org/book/ch10-02-traits.html#traits-as-parameters + = note: expected type parameter `bool` (type parameter `bool`) + found type `bool` (`bool`) error: aborting due to previous error