fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
1.5 KiB41 linesraw
1error[E0277]: the trait bound `S: std::marker::Copy` is not satisfied in `(S, T)`
2  --> $DIR/issue-55872-1.rs:12:5
3   |
4LL |     type E = impl Copy;
5   |     ^^^^^^^^^^^^^^^^^^^ within `(S, T)`, the trait `std::marker::Copy` is not implemented for `S`
6   |
7help: consider further restricting this bound with `+ std::marker::Copy`
8  --> $DIR/issue-55872-1.rs:11:9
9   |
10LL | impl<S: Default> Bar for S {
11   |         ^^^^^^^
12   = note: required because it appears within the type `(S, T)`
13   = note: the return type of a function must have a statically known size
14
15error[E0277]: the trait bound `T: std::marker::Copy` is not satisfied in `(S, T)`
16  --> $DIR/issue-55872-1.rs:12:5
17   |
18LL |     type E = impl Copy;
19   |     ^^^^^^^^^^^^^^^^^^^ within `(S, T)`, the trait `std::marker::Copy` is not implemented for `T`
20   |
21help: consider further restricting this bound with `+ std::marker::Copy`
22  --> $DIR/issue-55872-1.rs:16:15
23   |
24LL |     fn foo<T: Default>() -> Self::E {
25   |               ^^^^^^^
26   = note: required because it appears within the type `(S, T)`
27   = note: the return type of a function must have a statically known size
28
29error: type parameter `T` is part of concrete type but not used in parameter list for the `impl Trait` type alias
30  --> $DIR/issue-55872-1.rs:16:37
31   |
32LL |       fn foo<T: Default>() -> Self::E {
33   |  _____________________________________^
34LL | |
35LL | |         (S::default(), T::default())
36LL | |     }
37   | |_____^
38
39error: aborting due to 3 previous errors
40
41For more information about this error, try `rustc --explain E0277`.