]> git.lizzy.rs Git - rust.git/blob - src/test/ui/dropck/relate_lt_in_type_outlives_bound.stderr
Rollup merge of #105978 - jyn514:unused_proc_macro_decl, r=tmiasko
[rust.git] / src / test / ui / dropck / relate_lt_in_type_outlives_bound.stderr
1 error[E0367]: `Drop` impl requires `T: 'static` but the struct it is implemented for does not
2   --> $DIR/relate_lt_in_type_outlives_bound.rs:7:8
3    |
4 LL |     T: 'static,
5    |        ^^^^^^^
6    |
7 note: the implementor must specify the same requirement
8   --> $DIR/relate_lt_in_type_outlives_bound.rs:1:1
9    |
10 LL | struct Wrapper<'a, T>(&'a T)
11    | ^^^^^^^^^^^^^^^^^^^^^
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0367`.