1 error[E0308]: mismatched types
2 --> $DIR/regions-fn-subtyping-return-static-fail.rs:40:12
5 | ^^^ expected concrete lifetime, found bound lifetime parameter 'cx
7 = note: expected type `for<'cx> fn(&'cx S) -> &'cx S`
8 found type `for<'a> fn(&'a S) -> &S {bar::<'_>}`
10 error[E0308]: mismatched types
11 --> $DIR/regions-fn-subtyping-return-static-fail.rs:48:12
14 | ^^^ expected concrete lifetime, found bound lifetime parameter 'cx
16 = note: expected type `for<'cx> fn(&'cx S) -> &'static S`
17 found type `for<'r> fn(&'r S) -> &'r S {baz}`
19 error: aborting due to 2 previous errors
21 For more information about this error, try `rustc --explain E0308`.