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-3.rs:13:17 3 | 4LL | wants_write([0u8]); 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-3.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 [0u8][..]); 18 | ++++ ++++ 19 20error[E0277]: the trait bound `&mut [u8; 1]: Write` is not satisfied 21 --> $DIR/issue-90528-unsizing-suggestion-3.rs:15:17 22 | 23LL | wants_write(&mut [0u8]); 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-3.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 [0u8][..]); 37 | ++++ 38 39error[E0277]: the trait bound `&[u8; 1]: Write` is not satisfied 40 --> $DIR/issue-90528-unsizing-suggestion-3.rs:18:17 41 | 42LL | wants_write(&[0u8]); 43 | ----------- ^^^^^^ the trait `Write` is not implemented for `&[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-3.rs:10:24 50 | 51LL | fn wants_write(_: impl Write) {} 52 | ^^^^^ required by this bound in `wants_write` 53 54error[E0277]: the trait bound `&[u8]: Write` is not satisfied 55 --> $DIR/issue-90528-unsizing-suggestion-3.rs:20:17 56 | 57LL | wants_write(&[0u8][..]); 58 | ----------- ^^^^^^^^^^ the trait `Write` is not implemented for `&[u8]` 59 | | 60 | required by a bound introduced by this call 61 | 62 = help: the trait `Write` is implemented for `&mut [u8]` 63note: required by a bound in `wants_write` 64 --> $DIR/issue-90528-unsizing-suggestion-3.rs:10:24 65 | 66LL | fn wants_write(_: impl Write) {} 67 | ^^^^^ required by this bound in `wants_write` 68help: consider changing this borrow's mutability 69 | 70LL | wants_write(&mut [0u8][..]); 71 | ~~~~ 72 73error: aborting due to 4 previous errors 74 75For more information about this error, try `rustc --explain E0277`.