mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-11 16:15:03 +00:00
9 lines
229 B
Rust
9 lines
229 B
Rust
fn main() {
|
|
let mut buf = [0u8; 50];
|
|
let mut bref = buf.as_slice();
|
|
foo(&mut bref);
|
|
//~^ ERROR 4:9: 4:18: the trait bound `&[u8]: std::io::Write` is not satisfied [E0277]
|
|
}
|
|
|
|
fn foo(_: &mut impl std::io::Write) {}
|