mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 19:23:50 +00:00
10 lines
251 B
Rust
10 lines
251 B
Rust
//@ 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>());
|
|
}
|