fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the trait bound `for<'a> &'a _: Trait` is not satisfied 2 --> $DIR/issue-89333.rs:6:5 3 | 4LL | test(&|| 0); 5 | ^^^^ the trait `for<'a> Trait` is not implemented for `&'a _` 6 | 7help: this trait has no implementations, consider adding one 8 --> $DIR/issue-89333.rs:9:1 9 | 10LL | trait Trait {} 11 | ^^^^^^^^^^^ 12note: required by a bound in `test` 13 --> $DIR/issue-89333.rs:11:55 14 | 15LL | fn test<T>(arg: &impl Fn() -> T) where for<'a> &'a T: Trait {} 16 | ^^^^^ required by this bound in `test` 17 18error: aborting due to previous error 19 20For more information about this error, try `rustc --explain E0277`.