]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-31260.rs
Rollup merge of #106148 - chenyukang:yukang/fix-105061-unused, r=lcnr
[rust.git] / tests / ui / issues / issue-31260.rs
1 // check-pass
2 #![allow(dead_code)]
3 pub struct Struct<K: 'static> {
4     pub field: K,
5 }
6
7 static STRUCT: Struct<&'static [u8]> = Struct {
8     field: {&[1]}
9 };
10
11 static STRUCT2: Struct<&'static [u8]> = Struct {
12     field: &[1]
13 };
14
15 fn main() {}