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