fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
1error[E0308]: mismatched types 2 --> $DIR/unsafe-subtyping.rs:4:5 3 | 4LL | fn foo(x: Option<fn(i32)>) -> Option<unsafe fn(i32)> { 5 | ---------------------- expected `std::option::Option<unsafe fn(i32)>` because of return type 6LL | x 7 | ^ expected unsafe fn, found normal fn 8 | 9 = note: expected type `std::option::Option<unsafe fn(i32)>` 10 found type `std::option::Option<fn(i32)>` 11 12error: aborting due to previous error 13 14For more information about this error, try `rustc --explain E0308`.