fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the trait bound `[u8; 1]: Read` is not satisfied 2 --> $DIR/issue-90528-unsizing-suggestion-2.rs:14:16 3 | 4LL | wants_read(x); 5 | ---------- ^ the trait `Read` is not implemented for `[u8; 1]` 6 | | 7 | required by a bound introduced by this call 8 | 9 = help: the trait `Read` is implemented for `&[u8]` 10note: required by a bound in `wants_read` 11 --> $DIR/issue-90528-unsizing-suggestion-2.rs:10:23 12 | 13LL | fn wants_read(_: impl Read) {} 14 | ^^^^ required by this bound in `wants_read` 15help: convert the array to a `&[u8]` slice instead 16 | 17LL | wants_read(&x[..]); 18 | + ++++ 19 20error[E0277]: the trait bound `&[u8; 1]: Read` is not satisfied 21 --> $DIR/issue-90528-unsizing-suggestion-2.rs:16:16 22 | 23LL | wants_read(&x); 24 | ---------- ^^ the trait `Read` is not implemented for `&[u8; 1]` 25 | | 26 | required by a bound introduced by this call 27 | 28 = help: the trait `Read` is implemented for `&[u8]` 29note: required by a bound in `wants_read` 30 --> $DIR/issue-90528-unsizing-suggestion-2.rs:10:23 31 | 32LL | fn wants_read(_: impl Read) {} 33 | ^^^^ required by this bound in `wants_read` 34help: convert the array to a `&[u8]` slice instead 35 | 36LL | wants_read(&x[..]); 37 | ++++ 38 39error[E0277]: the trait bound `&[u8; 1]: Read` is not satisfied 40 --> $DIR/issue-90528-unsizing-suggestion-2.rs:21:16 41 | 42LL | wants_read(x); 43 | ---------- ^ the trait `Read` is not implemented for `&[u8; 1]` 44 | | 45 | required by a bound introduced by this call 46 | 47 = help: the trait `Read` is implemented for `&[u8]` 48note: required by a bound in `wants_read` 49 --> $DIR/issue-90528-unsizing-suggestion-2.rs:10:23 50 | 51LL | fn wants_read(_: impl Read) {} 52 | ^^^^ required by this bound in `wants_read` 53help: convert the array to a `&[u8]` slice instead 54 | 55LL | wants_read(&x[..]); 56 | + ++++ 57 58error[E0277]: the trait bound `&&[u8; 1]: Read` is not satisfied 59 --> $DIR/issue-90528-unsizing-suggestion-2.rs:23:16 60 | 61LL | wants_read(&x); 62 | ---------- ^^ the trait `Read` is not implemented for `&&[u8; 1]` 63 | | 64 | required by a bound introduced by this call 65 | 66 = help: the trait `Read` is implemented for `&[u8]` 67note: required by a bound in `wants_read` 68 --> $DIR/issue-90528-unsizing-suggestion-2.rs:10:23 69 | 70LL | fn wants_read(_: impl Read) {} 71 | ^^^^ required by this bound in `wants_read` 72 73error[E0277]: the trait bound `[u8; 1]: Read` is not satisfied 74 --> $DIR/issue-90528-unsizing-suggestion-2.rs:25:16 75 | 76LL | wants_read(*x); 77 | ---------- ^^ the trait `Read` is not implemented for `[u8; 1]` 78 | | 79 | required by a bound introduced by this call 80 | 81 = help: the trait `Read` is implemented for `&[u8]` 82note: required by a bound in `wants_read` 83 --> $DIR/issue-90528-unsizing-suggestion-2.rs:10:23 84 | 85LL | fn wants_read(_: impl Read) {} 86 | ^^^^ required by this bound in `wants_read` 87help: convert the array to a `&[u8]` slice instead 88 | 89LL | wants_read(&*x[..]); 90 | + ++++ 91 92error: aborting due to 5 previous errors 93 94For more information about this error, try `rustc --explain E0277`.