// Check that safe fns are not a subtype of unsafe fns. fn foo(x: Option) -> Option { x //~ ERROR mismatched types } fn bar(x: fn(i32)) -> unsafe fn(i32) { x // OK, coercion! } fn main() { }