mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-01 09:32:15 +00:00
7 lines
182 B
Rust
7 lines
182 B
Rust
use std::mem::{ManuallyDrop, transmute};
|
|
const DATA: ManuallyDrop<&i32> = unsafe { transmute(4_usize) };
|
|
|
|
fn main() {
|
|
if let DATA = DATA {} //~ERROR: cannot be used as pattern
|
|
}
|