error[E0277]: the trait bound `[u8; 1]: Read` is not satisfied --> $DIR/issue-90528-unsizing-suggestion-2.rs:14:16 | LL | wants_read(x); | ---------- ^ the trait `Read` is not implemented for `[u8; 1]` | | | required by a bound introduced by this call | = help: the trait `Read` is implemented for `&[u8]` note: required by a bound in `wants_read` --> $DIR/issue-90528-unsizing-suggestion-2.rs:10:23 | LL | fn wants_read(_: impl Read) {} | ^^^^ required by this bound in `wants_read` help: convert the array to a `&[u8]` slice instead | LL | wants_read(&x[..]); | + ++++ error[E0277]: the trait bound `&[u8; 1]: Read` is not satisfied --> $DIR/issue-90528-unsizing-suggestion-2.rs:16:16 | LL | wants_read(&x); | ---------- ^^ the trait `Read` is not implemented for `&[u8; 1]` | | | required by a bound introduced by this call | = help: the trait `Read` is implemented for `&[u8]` note: required by a bound in `wants_read` --> $DIR/issue-90528-unsizing-suggestion-2.rs:10:23 | LL | fn wants_read(_: impl Read) {} | ^^^^ required by this bound in `wants_read` help: convert the array to a `&[u8]` slice instead | LL | wants_read(&x[..]); | ++++ error[E0277]: the trait bound `&[u8; 1]: Read` is not satisfied --> $DIR/issue-90528-unsizing-suggestion-2.rs:21:16 | LL | wants_read(x); | ---------- ^ the trait `Read` is not implemented for `&[u8; 1]` | | | required by a bound introduced by this call | = help: the trait `Read` is implemented for `&[u8]` note: required by a bound in `wants_read` --> $DIR/issue-90528-unsizing-suggestion-2.rs:10:23 | LL | fn wants_read(_: impl Read) {} | ^^^^ required by this bound in `wants_read` help: convert the array to a `&[u8]` slice instead | LL | wants_read(&x[..]); | + ++++ error[E0277]: the trait bound `&&[u8; 1]: Read` is not satisfied --> $DIR/issue-90528-unsizing-suggestion-2.rs:23:16 | LL | wants_read(&x); | ---------- ^^ the trait `Read` is not implemented for `&&[u8; 1]` | | | required by a bound introduced by this call | = help: the trait `Read` is implemented for `&[u8]` note: required by a bound in `wants_read` --> $DIR/issue-90528-unsizing-suggestion-2.rs:10:23 | LL | fn wants_read(_: impl Read) {} | ^^^^ required by this bound in `wants_read` error[E0277]: the trait bound `[u8; 1]: Read` is not satisfied --> $DIR/issue-90528-unsizing-suggestion-2.rs:25:16 | LL | wants_read(*x); | ---------- ^^ the trait `Read` is not implemented for `[u8; 1]` | | | required by a bound introduced by this call | = help: the trait `Read` is implemented for `&[u8]` note: required by a bound in `wants_read` --> $DIR/issue-90528-unsizing-suggestion-2.rs:10:23 | LL | fn wants_read(_: impl Read) {} | ^^^^ required by this bound in `wants_read` help: convert the array to a `&[u8]` slice instead | LL | wants_read(&*x[..]); | + ++++ error: aborting due to 5 previous errors For more information about this error, try `rustc --explain E0277`.