]> git.proxmox.com Git - rustc.git/blame - tests/ui/where-clauses/higher-ranked-fn-type.verbose.stderr
New upstream version 1.69.0+dfsg1
[rustc.git] / tests / ui / where-clauses / higher-ranked-fn-type.verbose.stderr
CommitLineData
487cf647 1error[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
2b03887a
FG
2 --> $DIR/higher-ranked-fn-type.rs:20:5
3 |
4LL | called()
487cf647 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) }) ())`
2b03887a
FG
6 |
7note: required by a bound in `called`
8 --> $DIR/higher-ranked-fn-type.rs:12:25
9 |
10LL | fn called()
9ffffee4 11 | ------ required by a bound in this function
2b03887a
FG
12LL | where
13LL | for<'b> fn(&'b ()): Foo,
14 | ^^^ required by this bound in `called`
15
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0277`.