1 2 3 4 5 6 7 8 9
// gate-test-const_try const fn t() -> Option<()> { Some(())?; //~^ error: `?` is not allowed in a `const fn` None } fn main() {}