1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#![crate_type = "lib"] pub struct Header<'a> { pub value: &'a [u8], } pub fn test() { let headers = [Header{value: &[]}; 128]; //~^ ERROR the trait bound } pub fn test2() { let headers = [Header{value: &[0]}; 128]; //~^ ERROR the trait bound }