mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +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) {}
|