]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/len_zero.fixed
Rustup to https://github.com/rust-lang/rust/pull/61203
[rust.git] / tests / ui / len_zero.fixed
index 56109a0fa5fbdc6ca1a3afcdcc60fb27b5fc0601..624e5ef8fcf13129184a1c5b1580ce50ad6c696c 100644 (file)
@@ -70,7 +70,7 @@ fn main() {
         println!("This should not happen either!");
     }
 
-    let z: &TraitsToo = &y;
+    let z: &dyn TraitsToo = &y;
     if z.len() > 0 {
         // No error; `TraitsToo` has no `.is_empty()` method.
         println!("Nor should this!");
@@ -125,7 +125,7 @@ fn main() {
     }
     assert!(!has_is_empty.is_empty());
 
-    let with_is_empty: &WithIsEmpty = &Wither;
+    let with_is_empty: &dyn WithIsEmpty = &Wither;
     if with_is_empty.is_empty() {
         println!("Or this!");
     }