]> git.lizzy.rs Git - rust.git/blob - tests/ui/higher-rank-trait-bounds/hrtb-exists-forall-fn.stderr
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / higher-rank-trait-bounds / hrtb-exists-forall-fn.stderr
1 error[E0308]: mismatched types
2   --> $DIR/hrtb-exists-forall-fn.rs:17:34
3    |
4 LL |     let _: for<'b> fn(&'b u32) = foo();
5    |                                  ^^^^^ one type is more general than the other
6    |
7    = note: expected fn pointer `for<'b> fn(&'b u32)`
8               found fn pointer `fn(&u32)`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0308`.