]> git.lizzy.rs Git - rust.git/blob - src/test/ui/dropck/relate_lt_in_type_outlives_bound.rs
Auto merge of #86988 - thomcc:chunky-splitz-says-no-checking, r=the8472
[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() {}