rust/src/test/ui/traits/inductive-overflow/lifetime.stderr

21 lines
734 B
Plaintext
Raw Normal View History

error[E0275]: overflow evaluating the requirement `Box<X<C<'_>>>: NotAuto`
2021-02-08 16:15:45 -06:00
--> $DIR/lifetime.rs:27:5
|
LL | fn is_send<S: NotAuto>() {}
| ------- required by this bound in `is_send`
...
LL | is_send::<X<C<'static>>>();
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
note: required because of the requirements on the impl of `NotAuto` for `X<C<'_>>`
--> $DIR/lifetime.rs:19:12
|
LL | impl<T: Y> NotAuto for X<T> where T::P: NotAuto {}
| ^^^^^^^ ^^^^
= note: 2 redundant requirements hidden
= note: required because of the requirements on the impl of `NotAuto` for `X<C<'static>>`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0275`.