1 error[E0308]: mismatched types
2 --> $DIR/unsafe-subtyping.rs:4:5
4 LL | fn foo(x: Option<fn(i32)>) -> Option<unsafe fn(i32)> {
5 | ---------------------- expected `Option<unsafe fn(i32)>` because of return type
7 | ^ expected unsafe fn, found normal fn
9 = note: expected enum `Option<unsafe fn(_)>`
10 found enum `Option<fn(_)>`
12 error: aborting due to previous error
14 For more information about this error, try `rustc --explain E0308`.