]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/traits/bound/sugar.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / traits / bound / sugar.stderr
index feb0c73a09d3d6335abf01036e14fc4dd108e81c..b67648c7b04da6b60d04f58add32f3e6cb26d767 100644 (file)
@@ -2,10 +2,17 @@ error[E0308]: mismatched types
   --> $DIR/sugar.rs:12:7
    |
 LL |     a(x);
-   |       ^ expected trait `Foo + Send`, found trait `Foo + Sync`
+   |     - ^ expected trait `Foo + Send`, found trait `Foo + Sync`
+   |     |
+   |     arguments to this function are incorrect
    |
    = note: expected struct `Box<(dyn Foo + Send + 'static)>`
               found struct `Box<(dyn Foo + Sync + 'static)>`
+note: function defined here
+  --> $DIR/sugar.rs:5:4
+   |
+LL | fn a(_x: Box<dyn Foo + Send>) {
+   |    ^ -----------------------
 
 error: aborting due to previous error