about summary refs log tree commit diff
path: root/tests/ui/suggestions/issue-105645.rs
blob: f3ca8ccbb3c71ec712b6fc731b8cf30838d8ed57 (plain)
1
2
3
4
5
6
7
8
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) {}