mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-03 14:34:58 +00:00
Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
11 lines
175 B
Rust
11 lines
175 B
Rust
//@ run-pass
|
|
// Issue #7988
|
|
// Transmuting non-immediate type to immediate type
|
|
|
|
|
|
pub fn main() {
|
|
unsafe {
|
|
::std::mem::transmute::<[isize; 1],isize>([1])
|
|
};
|
|
}
|