From f08f933b7c161c3e2a9095c659db04c3b1a2ac2f Mon Sep 17 00:00:00 2001 From: "Felix S. Klock II" Date: Fri, 4 Jun 2021 16:23:18 -0400 Subject: [PATCH] Regression test for issue 84297. --- src/test/ui/intrinsics/issue-84297-reifying-copy.rs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/test/ui/intrinsics/issue-84297-reifying-copy.rs diff --git a/src/test/ui/intrinsics/issue-84297-reifying-copy.rs b/src/test/ui/intrinsics/issue-84297-reifying-copy.rs new file mode 100644 index 0000000000000..08ba9ce7ecb29 --- /dev/null +++ b/src/test/ui/intrinsics/issue-84297-reifying-copy.rs @@ -0,0 +1,9 @@ +// check-pass + +fn main() { + let _unused = if true { + core::ptr::copy:: + } else { + core::ptr::copy_nonoverlapping:: + }; +}