6 impl<T> GoodBye for T {
10 trait NeedsWf<'a, 'b> {
14 impl<'a, 'b> NeedsWf<'a, 'b> for Foo<<&'a &'b () as GoodBye>::Forget> {
15 type Assoc = &'a &'b ();
16 //~^ ERROR in type `&'a &'b ()`, reference has a longer lifetime than the data it references
19 fn needs_wf<'a, 'b, T: NeedsWf<'a, 'b>>() {}
21 fn foo<'a: 'a, 'b: 'b>(_: &'b String) {
22 needs_wf::<'a, 'b, Foo<()>>();
26 let x = String::from("hello");
27 foo::<'static, '_>(&x);