1 error[E0276]: impl has stricter requirements than trait
2 --> $DIR/impl_bounds.rs:14:39
4 LL | type A<'a> where Self: 'a;
5 | ---------- definition of `A` from trait
7 LL | type A<'a> = (&'a ()) where Self: 'static;
8 | ^^^^^^^ impl has extra requirement `T: 'static`
10 error[E0276]: impl has stricter requirements than trait
11 --> $DIR/impl_bounds.rs:16:48
13 LL | type B<'a, 'b> where 'a: 'b;
14 | -------------- definition of `B` from trait
16 LL | type B<'a, 'b> = (&'a(), &'b ()) where 'b: 'a;
17 | ^^ impl has extra requirement `'b: 'a`
19 help: copy the `where` clause predicates from the trait
21 LL | type B<'a, 'b> = (&'a(), &'b ()) where 'a: 'b;
24 error[E0277]: the trait bound `T: Copy` is not satisfied
25 --> $DIR/impl_bounds.rs:18:33
27 LL | type C = String where Self: Copy;
28 | ^^^^ the trait `Copy` is not implemented for `T`
30 note: required for `Fooy<T>` to implement `Copy`
31 --> $DIR/impl_bounds.rs:10:10
33 LL | #[derive(Copy, Clone)]
34 | ^^^^ unsatisfied trait bound introduced in this `derive` macro
35 note: the requirement `Fooy<T>: Copy` appears on the `impl`'s associated type `C` but not on the corresponding trait's associated type
36 --> $DIR/impl_bounds.rs:6:10
41 LL | type C where Self: Clone;
42 | ^ this trait's associated type doesn't have the requirement `Fooy<T>: Copy`
43 = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info)
44 help: consider restricting type parameter `T`
46 LL | impl<T: std::marker::Copy> Foo for Fooy<T> {
49 error[E0277]: the trait bound `T: Copy` is not satisfied
50 --> $DIR/impl_bounds.rs:20:24
52 LL | fn d() where Self: Copy {}
53 | ^^^^ the trait `Copy` is not implemented for `T`
55 note: required for `Fooy<T>` to implement `Copy`
56 --> $DIR/impl_bounds.rs:10:10
58 LL | #[derive(Copy, Clone)]
59 | ^^^^ unsatisfied trait bound introduced in this `derive` macro
60 note: the requirement `Fooy<T>: Copy` appears on the `impl`'s method `d` but not on the corresponding trait's method
61 --> $DIR/impl_bounds.rs:7:8
66 LL | fn d() where Self: Clone;
67 | ^ this trait's method doesn't have the requirement `Fooy<T>: Copy`
68 = note: this error originates in the derive macro `Copy` (in Nightly builds, run with -Z macro-backtrace for more info)
69 help: consider restricting type parameter `T`
71 LL | impl<T: std::marker::Copy> Foo for Fooy<T> {
74 error: aborting due to 4 previous errors
76 Some errors have detailed explanations: E0276, E0277.
77 For more information about an error, try `rustc --explain E0276`.