2019-11-03 18:00:00 -06:00
|
|
|
// check-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(dead_code)]
|
2017-03-09 13:06:18 -06:00
|
|
|
pub struct Struct<K: 'static> {
|
|
|
|
pub field: K,
|
|
|
|
}
|
|
|
|
|
|
|
|
static STRUCT: Struct<&'static [u8]> = Struct {
|
|
|
|
field: {&[1]}
|
|
|
|
};
|
|
|
|
|
2017-06-21 12:28:09 -05:00
|
|
|
static STRUCT2: Struct<&'static [u8]> = Struct {
|
|
|
|
field: &[1]
|
|
|
|
};
|
|
|
|
|
2017-03-09 13:06:18 -06:00
|
|
|
fn main() {}
|