summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/issue-104155.rs
blob: 7b375dc05667532ab354dc7e3646c59d6f85db7f (plain)
1
2
3
4
5
6
7
8
// check-pass

#![allow(forgetting_copy_types)]

const _: () = core::mem::forget(Box::<u32>::default);
const _: () = core::mem::forget(|| Box::<u32>::default());

fn main() {}