Skip to content

Commit 50057ee

Browse files
committed
bench: libcore: fix build failure of any.rs benchmark (use "dyn Any")
1 parent f4e981c commit 50057ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/benches/any.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use test::{Bencher, black_box};
1515
fn bench_downcast_ref(b: &mut Bencher) {
1616
b.iter(|| {
1717
let mut x = 0;
18-
let mut y = &mut x as &mut Any;
18+
let mut y = &mut x as &mut dyn Any;
1919
black_box(&mut y);
2020
black_box(y.downcast_ref::<isize>() == Some(&0));
2121
});

0 commit comments

Comments
 (0)