]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/unnecessary_clone.stderr
Rustup to https://github.com/rust-lang/rust/pull/61203
[rust.git] / tests / ui / unnecessary_clone.stderr
index a014478597fc3406fed86b6d30ac5e3c8909457d..8d5d54e7de678798a5b6f56c37cf9a5026060d15 100644 (file)
@@ -45,10 +45,10 @@ LL |     arc_weak.clone();
    |     ^^^^^^^^^^^^^^^^ help: try this: `Weak::<bool>::clone(&arc_weak)`
 
 error: using '.clone()' on a ref-counted pointer
-  --> $DIR/unnecessary_clone.rs:47:29
+  --> $DIR/unnecessary_clone.rs:47:33
    |
-LL |     let _: Arc<SomeTrait> = x.clone();
-   |                             ^^^^^^^^^ help: try this: `Arc::<SomeImpl>::clone(&x)`
+LL |     let _: Arc<dyn SomeTrait> = x.clone();
+   |                                 ^^^^^^^^^ help: try this: `Arc::<SomeImpl>::clone(&x)`
 
 error: using `clone` on a `Copy` type
   --> $DIR/unnecessary_clone.rs:51:5