]> git.lizzy.rs Git - rust.git/blob - src/test/ui/dropck/relate_lt_in_type_outlives_bound.rs
Merge commit '984330a6ee3c4d15626685d6dc8b7b759ff630bd' into clippyup
[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() {}