]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/mismatched_types/issue-35030.stderr
New upstream version 1.45.0+dfsg1
[rustc.git] / src / test / ui / mismatched_types / issue-35030.stderr
index 4a9afb9d2494e615b440d64df730b3b1dc64553c..9f4e4398984aed92cd5507aafdb11c567b9f0964 100644 (file)
@@ -1,13 +1,14 @@
 error[E0308]: mismatched types
   --> $DIR/issue-35030.rs:9:14
    |
+LL | impl<bool> Parser<bool> for bool {
+   |      ---- this type parameter
+LL |     fn parse(text: &str) -> Option<bool> {
 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