summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/issue-104155.rs
blob: 1cc8f81b0d257a590ad4d301f5a2f3151ae17ee1 (plain)
1
2
3
4
5
// check-pass
const _: () = core::mem::forget(Box::<u32>::default);
const _: () = core::mem::forget(|| Box::<u32>::default());

fn main() {}