Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
issues
/
issue-46604.rs
blob: 273187a5a13beb44b38cdfd24b3c891614288d08 [
file
] [
log
] [
blame
]
static
buf
:
&
mut
[
u8
]
=
&
mut
[
1u8
,
2
,
3
,
4
,
5
,
7
];
//~ ERROR E0764
fn
write
<
T
:
AsRef
<[
u8
]>>(
buffer
:
T
)
{
}
fn
main
()
{
write
(&
buf
);
buf
[
0
]=
2
;
//~ ERROR E0594
}