]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/associated-types/defaults-unsound-62211-1.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / associated-types / defaults-unsound-62211-1.stderr
index 2ba854eac4665b86159b74cdba0b37d188b39ed2..29a7c2eab41d5d4a6679db3ac93e1cae19559df2 100644 (file)
@@ -1,16 +1,16 @@
-error[E0277]: the trait bound `Self: std::marker::Copy` is not satisfied
+error[E0277]: the trait bound `Self: Copy` is not satisfied
   --> $DIR/defaults-unsound-62211-1.rs:21:18
    |
 LL | trait UncheckedCopy: Sized {
    | -------------------------- required by `UncheckedCopy`
 ...
 LL |     type Output: Copy
-   |                  ^^^^ the trait `std::marker::Copy` is not implemented for `Self`
+   |                  ^^^^ the trait `Copy` is not implemented for `Self`
    |
 help: consider further restricting `Self`
    |
-LL | trait UncheckedCopy: Sized + std::marker::Copy {
-   |                            ^^^^^^^^^^^^^^^^^^^
+LL | trait UncheckedCopy: Sized + Copy {
+   |                            ^^^^^^
 
 error[E0277]: cannot add-assign `&'static str` to `Self`
   --> $DIR/defaults-unsound-62211-1.rs:25:7
@@ -23,22 +23,22 @@ LL |     + AddAssign<&'static str>
    |
 help: consider further restricting `Self`
    |
-LL | trait UncheckedCopy: Sized + std::ops::AddAssign<&'static str> {
-   |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+LL | trait UncheckedCopy: Sized + AddAssign<&'static str> {
+   |                            ^^^^^^^^^^^^^^^^^^^^^^^^^
 
-error[E0277]: the trait bound `Self: std::ops::Deref` is not satisfied
+error[E0277]: the trait bound `Self: Deref` is not satisfied
   --> $DIR/defaults-unsound-62211-1.rs:23:7
    |
 LL | trait UncheckedCopy: Sized {
    | -------------------------- required by `UncheckedCopy`
 ...
 LL |     + Deref<Target = str>
-   |       ^^^^^^^^^^^^^^^^^^^ the trait `std::ops::Deref` is not implemented for `Self`
+   |       ^^^^^^^^^^^^^^^^^^^ the trait `Deref` is not implemented for `Self`
    |
 help: consider further restricting `Self`
    |
-LL | trait UncheckedCopy: Sized + std::ops::Deref {
-   |                            ^^^^^^^^^^^^^^^^^
+LL | trait UncheckedCopy: Sized + Deref {
+   |                            ^^^^^^^
 
 error[E0277]: `Self` doesn't implement `std::fmt::Display`
   --> $DIR/defaults-unsound-62211-1.rs:28:7
@@ -73,7 +73,7 @@ help: consider restricting type parameter `T`
 LL | impl<T: std::fmt::Display> UncheckedCopy for T {}
    |       ^^^^^^^^^^^^^^^^^^^
 
-error[E0277]: the trait bound `T: std::ops::Deref` is not satisfied
+error[E0277]: the trait bound `T: Deref` is not satisfied
   --> $DIR/defaults-unsound-62211-1.rs:41:9
    |
 LL | trait UncheckedCopy: Sized {
@@ -83,12 +83,12 @@ LL |     + Deref<Target = str>
    |       ------------------- required by this bound in `UncheckedCopy`
 ...
 LL | impl<T> UncheckedCopy for T {}
-   |         ^^^^^^^^^^^^^ the trait `std::ops::Deref` is not implemented for `T`
+   |         ^^^^^^^^^^^^^ the trait `Deref` is not implemented for `T`
    |
 help: consider restricting type parameter `T`
    |
-LL | impl<T: std::ops::Deref> UncheckedCopy for T {}
-   |       ^^^^^^^^^^^^^^^^^
+LL | impl<T: Deref> UncheckedCopy for T {}
+   |       ^^^^^^^
 
 error[E0277]: cannot add-assign `&'static str` to `T`
   --> $DIR/defaults-unsound-62211-1.rs:41:9
@@ -104,10 +104,10 @@ LL | impl<T> UncheckedCopy for T {}
    |
 help: consider restricting type parameter `T`
    |
-LL | impl<T: std::ops::AddAssign<&'static str>> UncheckedCopy for T {}
-   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+LL | impl<T: AddAssign<&'static str>> UncheckedCopy for T {}
+   |       ^^^^^^^^^^^^^^^^^^^^^^^^^
 
-error[E0277]: the trait bound `T: std::marker::Copy` is not satisfied
+error[E0277]: the trait bound `T: Copy` is not satisfied
   --> $DIR/defaults-unsound-62211-1.rs:41:9
    |
 LL | trait UncheckedCopy: Sized {
@@ -117,12 +117,12 @@ LL |     type Output: Copy
    |                  ---- required by this bound in `UncheckedCopy`
 ...
 LL | impl<T> UncheckedCopy for T {}
-   |         ^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `T`
+   |         ^^^^^^^^^^^^^ the trait `Copy` is not implemented for `T`
    |
 help: consider restricting type parameter `T`
    |
-LL | impl<T: std::marker::Copy> UncheckedCopy for T {}
-   |       ^^^^^^^^^^^^^^^^^^^
+LL | impl<T: Copy> UncheckedCopy for T {}
+   |       ^^^^^^
 
 error: aborting due to 8 previous errors