]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/implied_lifetime_wf_check4_static.stderr
Auto merge of #106458 - albertlarsan68:move-tests, r=jyn514
[rust.git] / tests / ui / type-alias-impl-trait / implied_lifetime_wf_check4_static.stderr
1 error[E0310]: the parameter type `A` may not live long enough
2   --> $DIR/implied_lifetime_wf_check4_static.rs:4:18
3    |
4 LL |     type Ty<A> = impl Sized + 'static;
5    |                  ^^^^^^^^^^^^^^^^^^^^ ...so that the type `A` will meet its required lifetime bounds
6    |
7 help: consider adding an explicit lifetime bound...
8    |
9 LL |     type Ty<A: 'static> = impl Sized + 'static;
10    |              +++++++++
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0310`.