]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/issue-105645.stderr
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / suggestions / issue-105645.stderr
1 error[E0277]: the trait bound `&[u8]: std::io::Write` is not satisfied
2   --> $DIR/issue-105645.rs:4:9
3    |
4 LL |     foo(&mut bref);
5    |     --- ^^^^^^^^^ the trait `std::io::Write` is not implemented for `&[u8]`
6    |     |
7    |     required by a bound introduced by this call
8    |
9    = help: the trait `std::io::Write` is implemented for `&mut [u8]`
10 note: required by a bound in `foo`
11   --> $DIR/issue-105645.rs:8:21
12    |
13 LL | fn foo(_: &mut impl std::io::Write) {}
14    |                     ^^^^^^^^^^^^^^ required by this bound in `foo`
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0277`.