]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/derives/derive-assoc-type-not-impl.stderr
Merge commit 'e214ea82ad0a751563acf67e1cd9279cf302db3a' into clippyup
[rust.git] / src / test / ui / derives / derive-assoc-type-not-impl.stderr
index c4c85773fbc1d26c3b7bebbeb6c4dde80f9a0a4a..be446feb847eb5a84df31d4f9657e68163ac9fdd 100644 (file)
@@ -12,6 +12,14 @@ LL | struct NotClone;
 ...
 LL |     Bar::<NotClone> { x: 1 }.clone();
    |                              ^^^^^ method not found in `Bar<NotClone>`
+   | 
+  ::: $SRC_DIR/libcore/clone.rs:LL:COL
+   |
+LL |     fn clone(&self) -> Self;
+   |        -----
+   |        |
+   |        the method is available for `std::sync::Arc<Bar<NotClone>>` here
+   |        the method is available for `std::rc::Rc<Bar<NotClone>>` here
    |
    = note: the method `clone` exists but the following trait bounds were not satisfied:
            `NotClone: std::clone::Clone`