]> git.lizzy.rs Git - rust.git/blob - src/test/ui/dropck/relate_lt_in_type_outlives_bound.rs
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[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() {}