]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/regions-fn-subtyping-return-static.stderr
Auto merge of #60093 - GuillaumeGomez:fix-attrs-pos, r=Manishearth
[rust.git] / src / test / ui / regions / regions-fn-subtyping-return-static.stderr
1 error[E0308]: mismatched types
2   --> $DIR/regions-fn-subtyping-return-static.rs:41:12
3    |
4 LL |     want_F(bar);
5    |            ^^^ expected concrete lifetime, found bound lifetime parameter 'cx
6    |
7    = note: expected type `for<'cx> fn(&'cx S) -> &'cx S`
8               found type `for<'a> fn(&'a S) -> &S {bar::<'_>}`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0308`.