]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/traits/impl-bounds-checking.stderr
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / traits / impl-bounds-checking.stderr
diff --git a/src/test/ui/traits/impl-bounds-checking.stderr b/src/test/ui/traits/impl-bounds-checking.stderr
new file mode 100644 (file)
index 0000000..8698ed6
--- /dev/null
@@ -0,0 +1,12 @@
+error[E0277]: the trait bound `isize: Clone2` is not satisfied
+  --> $DIR/impl-bounds-checking.rs:10:6
+   |
+LL | trait Getter<T: Clone2> {
+   |                 ------ required by this bound in `Getter`
+...
+LL | impl Getter<isize> for isize {
+   |      ^^^^^^^^^^^^^ the trait `Clone2` is not implemented for `isize`
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0277`.