]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/issue-55872-1.stderr
Ignore i586-unknown-linux-gnu and i586-unknown-musl in tests
[rust.git] / src / test / ui / impl-trait / issue-55872-1.stderr
1 error[E0277]: the trait bound `S: std::marker::Copy` is not satisfied in `(S, T)`
2   --> $DIR/issue-55872-1.rs:12:5
3    |
4 LL | impl<S: Default> Bar for S {
5    |      -- help: consider further restricting this bound: `S: std::marker::Copy +`
6 LL |     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
12 error[E0277]: the trait bound `T: std::marker::Copy` is not satisfied in `(S, T)`
13   --> $DIR/issue-55872-1.rs:12:5
14    |
15 LL |     type E = impl Copy;
16    |     ^^^^^^^^^^^^^^^^^^^ within `(S, T)`, the trait `std::marker::Copy` is not implemented for `T`
17 ...
18 LL |     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
24 error: 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    |
27 LL |       fn foo<T: Default>() -> Self::E {
28    |  _____________________________________^
29 LL | |
30 LL | |         (S::default(), T::default())
31 LL | |     }
32    | |_____^
33
34 error: aborting due to 3 previous errors
35
36 For more information about this error, try `rustc --explain E0277`.