]> git.lizzy.rs Git - rust.git/blob - tests/ui/where-clauses/higher-ranked-fn-type.verbose.stderr
Don't resolve type var roots in point_at_expr_source_of_inferred_type
[rust.git] / tests / ui / where-clauses / higher-ranked-fn-type.verbose.stderr
1 error[E0277]: the trait bound `for<Region(BrNamed(DefId(0:6 ~ higher_ranked_fn_type[1209]::called::'b), 'b))> fn(&ReLateBound(DebruijnIndex(1), BoundRegion { var: 0, kind: BrNamed(DefId(0:6 ~ higher_ranked_fn_type[1209]::called::'b), 'b) }) ()): Foo` is not satisfied
2   --> $DIR/higher-ranked-fn-type.rs:20:5
3    |
4 LL |     called()
5    |     ^^^^^^ the trait `for<Region(BrNamed(DefId(0:6 ~ higher_ranked_fn_type[1209]::called::'b), 'b))> Foo` is not implemented for `fn(&ReLateBound(DebruijnIndex(1), BoundRegion { var: 0, kind: BrNamed(DefId(0:6 ~ higher_ranked_fn_type[1209]::called::'b), 'b) }) ())`
6    |
7 note: required by a bound in `called`
8   --> $DIR/higher-ranked-fn-type.rs:12:25
9    |
10 LL | fn called()
11    |    ------ required by a bound in this
12 LL | where
13 LL |     for<'b> fn(&'b ()): Foo,
14    |                         ^^^ required by this bound in `called`
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0277`.