]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/issue-102392.stderr
Rollup merge of #106043 - c410-f3r:moar-errors, r=petrochenkov
[rust.git] / src / test / ui / regions / issue-102392.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-102392.rs:2:5
3    |
4 LL | fn g(f: for<'a> fn(fn(&str, &'a str))) -> bool {
5    |                                           ---- expected `bool` because of return type
6 LL |     f
7    |     ^ expected `bool`, found fn pointer
8    |
9    = note:    expected type `bool`
10            found fn pointer `for<'a> fn(for<'b> fn(&'b str, &'a str))`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0308`.