]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/impl-trait/universal-two-impl-traits.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / impl-trait / universal-two-impl-traits.stderr
index 98a70f268cf72ffa9387b3ad3ad5f01d5662ae61..7c120235fd17637b085fbe8032cf846f9fa7225b 100644 (file)
@@ -1,11 +1,16 @@
 error[E0308]: mismatched types
   --> $DIR/universal-two-impl-traits.rs:5:9
    |
+LL | fn foo(x: impl Debug, y: impl Debug) -> String {
+   |           ----------     ---------- found type parameter
+   |           |
+   |           expected type parameter
+LL |     let mut a = x;
 LL |     a = y;
-   |         ^ expected type parameter, found a different type parameter
+   |         ^ expected type parameter `impl Debug`, found a different type parameter `impl Debug`
    |
-   = note: expected type `impl Debug` (type parameter)
-              found type `impl Debug` (type parameter)
+   = note: expected type parameter `impl Debug` (type parameter `impl Debug`)
+              found type parameter `impl Debug` (type parameter `impl Debug`)
    = note: a type parameter was expected, but a different one was found; you might be missing a type parameter or trait bound
    = note: for more information, visit https://doc.rust-lang.org/book/ch10-02-traits.html#traits-as-parameters