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