summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/issue-104155.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/consts/issue-104155.rs')
-rw-r--r--tests/ui/consts/issue-104155.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ui/consts/issue-104155.rs b/tests/ui/consts/issue-104155.rs
index 1cc8f81b0..7b375dc05 100644
--- a/tests/ui/consts/issue-104155.rs
+++ b/tests/ui/consts/issue-104155.rs
@@ -1,4 +1,7 @@
// check-pass
+
+#![allow(forgetting_copy_types)]
+
const _: () = core::mem::forget(Box::<u32>::default);
const _: () = core::mem::forget(|| Box::<u32>::default());