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