Sign in
rust
/
rust-lang
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
suggestions
/
issue-105645.rs
blob: f3ca8ccbb3c71ec712b6fc731b8cf30838d8ed57 [
file
] [
log
] [
blame
]
fn
main
()
{
let
mut
buf
=
[
0u8
;
50
];
let
mut
bref
=
buf
.
as_slice
();
foo
(&
mut
bref
);
//~^ ERROR the trait bound `&[u8]: std::io::Write` is not satisfied [E0277]
}
fn
foo
(
_
:
&
mut
impl
std
::
io
::
Write
)
{}