Files
rust/tests/ui/transmute-non-immediate-to-immediate.rs

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

11 lines
175 B
Rust
Raw Normal View History

//@ run-pass
// Issue #7988
// Transmuting non-immediate type to immediate type
pub fn main() {
unsafe {
::std::mem::transmute::<[isize; 1],isize>([1])
};
}