]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/malformed/malformed-derive-entry.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / malformed / malformed-derive-entry.stderr
index ddc75c905ac2091c94fb967938d3485ef2954e94..2c45a498240efccda7a64f401eecf09844c72766 100644 (file)
@@ -21,6 +21,11 @@ error[E0277]: the trait bound `Test1: std::clone::Clone` is not satisfied
    |
 LL | #[derive(Copy(Bad))]
    |          ^^^^ the trait `std::clone::Clone` is not implemented for `Test1`
+   | 
+  ::: $SRC_DIR/libcore/marker.rs:LL:COL
+   |
+LL | pub trait Copy: Clone {
+   |                 ----- required by this bound in `std::marker::Copy`
    |
    = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
 
@@ -29,6 +34,11 @@ error[E0277]: the trait bound `Test2: std::clone::Clone` is not satisfied
    |
 LL | #[derive(Copy="bad")]
    |          ^^^^ the trait `std::clone::Clone` is not implemented for `Test2`
+   | 
+  ::: $SRC_DIR/libcore/marker.rs:LL:COL
+   |
+LL | pub trait Copy: Clone {
+   |                 ----- required by this bound in `std::marker::Copy`
    |
    = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)