summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/issue-105645.rs
blob: 681ce1c6e37a64d4466f82f36b2ac6d84f1efd66 (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 4:9: 4:18: the trait bound `&[u8]: std::io::Write` is not satisfied [E0277]
}

fn foo(_: &mut impl std::io::Write) {}