Sign in
fuchsia
/
third_party
/
rust
/
a10a02bf5fd00e4b34f1856af17d058dd5ec06f0
/
.
/
src
/
test
/
ui
/
array-slice-vec
/
repeat_empty_ok.rs
blob: 25463ea5ee84155c55eb3b6d11dd90164c449b35 [
file
] [
log
] [
blame
]
#![
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
}