]> git.lizzy.rs Git - rust.git/blob - src/test/ui/dropck/relate_lt_in_type_outlives_bound.rs
Rollup merge of #105978 - jyn514:unused_proc_macro_decl, r=tmiasko
[rust.git] / src / test / ui / dropck / relate_lt_in_type_outlives_bound.rs
1 struct Wrapper<'a, T>(&'a T)
2 where
3     T: 'a;
4
5 impl<'a, T> Drop for Wrapper<'a, T>
6 where
7     T: 'static,
8     //~^ error: `Drop` impl requires `T: 'static` but the struct it is implemented for does not
9 {
10     fn drop(&mut self) {}
11 }
12
13 fn main() {}