You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The temporary &() is deduced to have type &'a () because of the where clause. If this where clause is removed, the code compiles. For some reason the compiler cannot see that &() still implements Foo for other lifetimes because of this where clause.