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