]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/issue-89333.stderr
Rollup merge of #107354 - tspiteri:source-serif-4.005, r=GuillaumeGomez
[rust.git] / tests / ui / suggestions / issue-89333.stderr
1 error[E0277]: the trait bound `for<'a> &'a _: Trait` is not satisfied
2   --> $DIR/issue-89333.rs:6:5
3    |
4 LL |     test(&|| 0);
5    |     ^^^^ the trait `for<'a> Trait` is not implemented for `&'a _`
6    |
7 note: required by a bound in `test`
8   --> $DIR/issue-89333.rs:11:55
9    |
10 LL | fn test<T>(arg: &impl Fn() -> T) where for<'a> &'a T: Trait {}
11    |                                                       ^^^^^ required by this bound in `test`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0277`.