fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the trait bound `[u8; 1]: Test` is not satisfied 2 --> $DIR/issue-90528-unsizing-not-suggestion-110063.rs:9:18 3 | 4LL | needs_test::<[u8; 1]>(); 5 | ^^^^^^^ the trait `Test` is not implemented for `[u8; 1]` 6 | 7 = help: the trait `Test` is implemented for `&[u8]` 8note: required by a bound in `needs_test` 9 --> $DIR/issue-90528-unsizing-not-suggestion-110063.rs:4:18 10 | 11LL | fn needs_test<T: Test>() -> T { 12 | ^^^^ required by this bound in `needs_test` 13 14error[E0277]: the trait bound `[u8; 1]: Test` is not satisfied 15 --> $DIR/issue-90528-unsizing-not-suggestion-110063.rs:11:22 16 | 17LL | let x: [u8; 1] = needs_test(); 18 | ^^^^^^^^^^ the trait `Test` is not implemented for `[u8; 1]` 19 | 20 = help: the trait `Test` is implemented for `&[u8]` 21note: required by a bound in `needs_test` 22 --> $DIR/issue-90528-unsizing-not-suggestion-110063.rs:4:18 23 | 24LL | fn needs_test<T: Test>() -> T { 25 | ^^^^ required by this bound in `needs_test` 26 27error: aborting due to 2 previous errors 28 29For more information about this error, try `rustc --explain E0277`.