blob: 42530d317308abb11c07f45cb42b74b7627ad14b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
struct Wrapper<'a, T>(&'a T)
where
T: 'a;
impl<'a, T> Drop for Wrapper<'a, T>
where
T: 'static,
//~^ error: `Drop` impl requires `T: 'static` but the struct it is implemented for does not
{
fn drop(&mut self) {}
}
fn main() {}
|