]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/regions-fn-subtyping-return-static.stderr
a8a7e97e6acf66a11660662851060962ff03557b
[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 fn pointer `for<'cx> fn(&'cx S) -> &'cx S`
8                  found fn item `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`.