]> git.lizzy.rs Git - rust.git/blob - src/test/ui/array-slice-vec/repeat_empty_ok.rs
Remove const_in_array_rep_expr
[rust.git] / src / test / 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 }