]> git.lizzy.rs Git - rust.git/blob - tests/ui/array-slice-vec/repeat_empty_ok.rs
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / array-slice-vec / repeat_empty_ok.rs
1 #![crate_type = "lib"]
2
3 pub struct Header<'a> {
4     pub value: &'a [u8],
5 }
6
7 pub fn test() {
8     let headers = [Header{value: &[]}; 128];
9     //~^ ERROR the trait bound
10 }
11
12 pub fn test2() {
13     let headers = [Header{value: &[0]}; 128];
14     //~^ ERROR the trait bound
15 }