blob: ae72eb11735e959686fe08374f072aac121d5bc8 [file] [log] [blame]
// skip-filecheck
//@ unit-test: Inline
//@ compile-flags: --crate-type=lib -C panic=abort
use std::any::Any;
use std::any::TypeId;
struct A<T: ?Sized + 'static> {
a: i32,
b: T,
}
// EMIT_MIR dont_inline_type_id.call.Inline.diff
pub fn call<T: ?Sized + 'static>(s: &T) -> TypeId {
s.type_id()
}