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