]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/issue-105645.rs
Rollup merge of #106714 - Ezrashaw:remove-e0490, r=davidtwco
[rust.git] / tests / ui / suggestions / issue-105645.rs
1 fn main() {
2     let mut buf = [0u8; 50];
3     let mut bref = buf.as_slice();
4     foo(&mut bref);
5     //~^ ERROR 4:9: 4:18: the trait bound `&[u8]: std::io::Write` is not satisfied [E0277]
6 }
7
8 fn foo(_: &mut impl std::io::Write) {}