4 struct Foo<'a>(&'a String);
6 impl<'a> Drop for Foo<'a> {
8 println!("{:?}", self.0);
15 x = "alive".to_string();
16 y = Arc::new(Foo(&x));
18 //~^^ ERROR `x` does not live long enough
22 x = "alive".to_string();
25 //~^^ ERROR `x` does not live long enough