rust/tests/ui/lint/auxiliary/trivial-cast-ice.rs

8 lines
137 B
Rust
Raw Normal View History

#[macro_export]
macro_rules! foo {
() => {
let x: &Option<i32> = &Some(1);
let _y = x as *const Option<i32>;
}
}