1 2 3 4 5 6 7 8 9 10
// run-rustfix fn foo() -> i32? { //~ ERROR invalid `?` in type let x: i32? = Some(1); //~ ERROR invalid `?` in type x } fn main() { let _: Option<i32> = foo(); }