Skip to content

Commit 1140a91

Browse files
committed
Add regression test
1 parent 6b26fda commit 1140a91

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/ui/consts/issue-62045.rs

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// compile-pass
2+
3+
fn main() {
4+
assert_eq!(&mut [0; 1][..], &mut []);
5+
}
6+

0 commit comments

Comments
 (0)