2021-07-18 03:34:50 +02:00
|
|
|
// gate-test-const_try
|
|
|
|
|
|
|
|
|
|
const fn t() -> Option<()> {
|
|
|
|
|
Some(())?;
|
2024-11-22 02:31:42 +00:00
|
|
|
//~^ ERROR `?` is not allowed
|
|
|
|
|
//~| ERROR `?` is not allowed
|
2025-07-21 12:49:45 +03:00
|
|
|
//~| ERROR `Try` is not yet stable as a const trait
|
|
|
|
|
//~| ERROR `FromResidual` is not yet stable as a const trait
|
2021-07-18 03:34:50 +02:00
|
|
|
None
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|