mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-22 11:53:44 +00:00
16 lines
267 B
Rust
16 lines
267 B
Rust
![]() |
#![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
|
||
|
}
|