fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

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