1 error[E0277]: the trait bound `for<'a> &'a _: Trait` is not satisfied
2 --> $DIR/issue-89333.rs:6:5
5 | ^^^^ the trait `for<'a> Trait` is not implemented for `&'a _`
7 note: required by a bound in `test`
8 --> $DIR/issue-89333.rs:11:55
10 LL | fn test<T>(arg: &impl Fn() -> T) where for<'a> &'a T: Trait {}
11 | ^^^^^ required by this bound in `test`
13 error: aborting due to previous error
15 For more information about this error, try `rustc --explain E0277`.