]> git.lizzy.rs Git - rust.git/blob - tests/ui/traits/inductive-overflow/lifetime.stderr
Move /src/test to /tests
[rust.git] / tests / ui / traits / inductive-overflow / lifetime.stderr
1 error[E0275]: overflow evaluating the requirement `X<C<'_>>: NotAuto`
2   --> $DIR/lifetime.rs:28:5
3    |
4 LL |     is_send::<X<C<'static>>>();
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7 note: required for `Box<X<C<'_>>>` to implement `NotAuto`
8   --> $DIR/lifetime.rs:18:18
9    |
10 LL | impl<T: NotAuto> NotAuto for Box<T> {}
11    |                  ^^^^^^^     ^^^^^^
12    = note: 3 redundant requirements hidden
13    = note: required for `X<C<'static>>` to implement `NotAuto`
14 note: required by a bound in `is_send`
15   --> $DIR/lifetime.rs:22:15
16    |
17 LL | fn is_send<S: NotAuto>() {}
18    |               ^^^^^^^ required by this bound in `is_send`
19
20 error: aborting due to previous error
21
22 For more information about this error, try `rustc --explain E0275`.