Skip to content

Commit 8759017

Browse files
authored
Rollup merge of rust-lang#155882 - pluiee:pluiee/101363-test, r=mu001999
Add regression test for rust-lang#101363 Adds test for rust-lang#101363 Since it's my first time adding tests, I'm not sure if the test itself, its location, or its name are appropriate.
2 parents f4d64bd + 612afd1 commit 8759017

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)