]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-31260.rs
Rollup merge of #91804 - woppopo:const_clone, r=oli-obk
[rust.git] / src / test / 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() {}