We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4e981c commit 50057eeCopy full SHA for 50057ee
src/libcore/benches/any.rs
@@ -15,7 +15,7 @@ use test::{Bencher, black_box};
15
fn bench_downcast_ref(b: &mut Bencher) {
16
b.iter(|| {
17
let mut x = 0;
18
- let mut y = &mut x as &mut Any;
+ let mut y = &mut x as &mut dyn Any;
19
black_box(&mut y);
20
black_box(y.downcast_ref::<isize>() == Some(&0));
21
});
0 commit comments