about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/libcore/benches/any.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/benches/any.rs b/src/libcore/benches/any.rs
index 67e02cf9509..f4f01eb1cf5 100644
--- a/src/libcore/benches/any.rs
+++ b/src/libcore/benches/any.rs
@@ -15,7 +15,7 @@ use test::{Bencher, black_box};
 fn bench_downcast_ref(b: &mut Bencher) {
     b.iter(|| {
         let mut x = 0;
-        let mut y = &mut x as &mut Any;
+        let mut y = &mut x as &mut dyn Any;
         black_box(&mut y);
         black_box(y.downcast_ref::<isize>() == Some(&0));
     });