]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/traits/bound/on-structs-and-enums-in-impls.stderr
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / traits / bound / on-structs-and-enums-in-impls.stderr
diff --git a/src/test/ui/traits/bound/on-structs-and-enums-in-impls.stderr b/src/test/ui/traits/bound/on-structs-and-enums-in-impls.stderr
new file mode 100644 (file)
index 0000000..47bab6c
--- /dev/null
@@ -0,0 +1,12 @@
+error[E0277]: the trait bound `u16: Trait` is not satisfied
+  --> $DIR/on-structs-and-enums-in-impls.rs:20:6
+   |
+LL | struct Foo<T:Trait> {
+   |              ----- required by this bound in `Foo`
+...
+LL | impl PolyTrait<Foo<u16>> for Struct {
+   |      ^^^^^^^^^^^^^^^^^^^ the trait `Trait` is not implemented for `u16`
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0277`.