mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
12 lines
308 B
Rust
12 lines
308 B
Rust
// compile-flags: --crate-type=lib
|
|
// unit-test: InstSimplify
|
|
|
|
#![feature(core_intrinsics)]
|
|
|
|
// Want to make sure this assertion isn't compiled away in generic code.
|
|
|
|
// EMIT_MIR dont_yeet_assert.generic.InstSimplify.diff
|
|
pub fn generic<T>() {
|
|
core::intrinsics::assert_mem_uninitialized_valid::<&T>();
|
|
}
|