Skip to content

Commit 612afd1

Browse files
committed
Add regression test
1 parent 68ffae4 commit 612afd1

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
//@ check-pass
2+
// Regression test for <https://github.com/rust-lang/rust/issues/101363>
3+
4+
const OPTIONAL_SLICE_V1: Option<&'static [u8]> = Some(&{
5+
let array = [1, 2, 3];
6+
array
7+
});
8+
9+
fn main() {
10+
let _ = OPTIONAL_SLICE_V1;
11+
}

0 commit comments

Comments
 (0)