summaryrefslogtreecommitdiff
path: root/tests/ui/type-alias-impl-trait/wf-nested.fail.stderr
blob: 753a46e882eda4e64964a7760bcd4972e34f5e8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
error[E0310]: the parameter type `T` may not live long enough
  --> $DIR/wf-nested.rs:55:27
   |
LL |     type InnerOpaque<T> = impl Sized;
   |                           ^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds...
   |
note: ...that is required by this bound
  --> $DIR/wf-nested.rs:12:20
   |
LL | struct IsStatic<T: 'static>(T);
   |                    ^^^^^^^
help: consider adding an explicit lifetime bound...
   |
LL |     type InnerOpaque<T: 'static> = impl Sized;
   |                       +++++++++

error: aborting due to previous error

For more information about this error, try `rustc --explain E0310`.