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