fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

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