Skip to content

Commit

Permalink
Add regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Jun 24, 2019
1 parent 6b26fda commit 1140a91
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/test/ui/consts/issue-62045.rs
@@ -0,0 +1,6 @@
// compile-pass

fn main() {
assert_eq!(&mut [0; 1][..], &mut []);
}

0 comments on commit 1140a91

Please sign in to comment.