]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/unnecessary_clone.rs
Rustup to https://github.com/rust-lang/rust/pull/61203
[rust.git] / tests / ui / unnecessary_clone.rs
index 570536d0a56f5cee0a544dcbb181f369151ccfe5..2e0fc122778191ccacd46317f734755d4ba236a3 100644 (file)
@@ -44,7 +44,7 @@ fn clone_on_ref_ptr() {
     sync::Weak::clone(&arc_weak);
 
     let x = Arc::new(SomeImpl);
-    let _: Arc<SomeTrait> = x.clone();
+    let _: Arc<dyn SomeTrait> = x.clone();
 }
 
 fn clone_on_copy_generic<T: Copy>(t: T) {