summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/auxiliary/trivial-cast-ice.rs
blob: ab2332d065655c1738d13c03334127a3b89198ec (plain)
1
2
3
4
5
6
7
#[macro_export]
macro_rules! foo {
    () => {
        let x: &Option<i32> = &Some(1);
        let _y = x as *const Option<i32>;
    }
}