diff options
Diffstat (limited to 'tests/ui/issues/issue-21891.rs')
-rw-r--r-- | tests/ui/issues/issue-21891.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-21891.rs b/tests/ui/issues/issue-21891.rs new file mode 100644 index 000000000..576f0253e --- /dev/null +++ b/tests/ui/issues/issue-21891.rs @@ -0,0 +1,12 @@ +// build-pass +#![allow(dead_code)] +#![allow(non_upper_case_globals)] + +// pretty-expanded FIXME #23616 + +static foo: [usize; 3] = [1, 2, 3]; + +static slice_1: &'static [usize] = &foo; +static slice_2: &'static [usize] = &foo; + +fn main() {} |