rust/tests/ui/traits/dyn-any-prefer-vtable.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
251 B
Rust
Raw Normal View History

//@ run-pass
//@ revisions: current next
//@ ignore-compare-mode-next-solver (explicit revisions)
//@[next] compile-flags: -Znext-solver
fn main() {
let x: &dyn std::any::Any = &1i32;
assert_eq!(x.type_id(), std::any::TypeId::of::<i32>());
}