]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-3702-2.rs
Rollup merge of #65389 - ecstatic-morse:zero-sized-array-no-drop, r=eddyb
[rust.git] / src / test / ui / issues / issue-3702-2.rs
index c3a92a23cef50dc087694e66578c162340013e33..d47f6d248f708772140b76491316fbd44b02f124 100644 (file)
@@ -7,12 +7,12 @@ impl ToPrimitive for isize {}
 
 trait Add {
     fn to_int(&self) -> isize;
-    fn add_dynamic(&self, other: &Add) -> isize;
+    fn add_dynamic(&self, other: &dyn Add) -> isize;
 }
 
 impl Add for isize {
     fn to_int(&self) -> isize { *self }
-    fn add_dynamic(&self, other: &Add) -> isize {
+    fn add_dynamic(&self, other: &dyn Add) -> isize {
         self.to_int() + other.to_int() //~ ERROR multiple applicable items in scope
     }
 }