]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/traits/bound/sugar.stderr
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / traits / bound / sugar.stderr
diff --git a/src/test/ui/traits/bound/sugar.stderr b/src/test/ui/traits/bound/sugar.stderr
new file mode 100644 (file)
index 0000000..feb0c73
--- /dev/null
@@ -0,0 +1,12 @@
+error[E0308]: mismatched types
+  --> $DIR/sugar.rs:12:7
+   |
+LL |     a(x);
+   |       ^ expected trait `Foo + Send`, found trait `Foo + Sync`
+   |
+   = note: expected struct `Box<(dyn Foo + Send + 'static)>`
+              found struct `Box<(dyn Foo + Sync + 'static)>`
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0308`.