summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/issue-62045.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/consts/issue-62045.rs')
-rw-r--r--tests/ui/consts/issue-62045.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/consts/issue-62045.rs b/tests/ui/consts/issue-62045.rs
new file mode 100644
index 000000000..5abed374a
--- /dev/null
+++ b/tests/ui/consts/issue-62045.rs
@@ -0,0 +1,5 @@
+// check-pass
+
+fn main() {
+ assert_eq!(&mut [0; 1][..], &mut []);
+}