]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/traits/negative-impls/pin-unsound-issue-66544-clone.stderr
make a custom error for overlap with negative impls
[rust.git] / src / test / ui / traits / negative-impls / pin-unsound-issue-66544-clone.stderr
index 1655d806fb43897a988e5944aab8ab9d4cc6fa53..f3305722cf2d32b768af934b5f4131af113a9188 100644 (file)
@@ -1,13 +1,11 @@
-error[E0119]: conflicting implementations of trait `std::clone::Clone` for type `&mut MyType<'_>`:
+error[E0748]: found both positive and negative implementation of trait `std::clone::Clone` for type `&mut MyType<'_>`:
   --> $DIR/pin-unsound-issue-66544-clone.rs:7:1
    |
 LL | impl<'a> Clone for &'a mut MyType<'a> {
-   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ positive implementation here
    |
-   = note: conflicting implementation in crate `core`:
-           - impl<T> std::clone::Clone for &mut T
-             where T: ?Sized;
+   = note: negative implementation in crate `core`
 
 error: aborting due to previous error
 
-For more information about this error, try `rustc --explain E0119`.
+For more information about this error, try `rustc --explain E0748`.