mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00
13 lines
282 B
Rust
13 lines
282 B
Rust
// gate-test-const_try
|
|
|
|
const fn t() -> Option<()> {
|
|
Some(())?;
|
|
//~^ ERROR `?` is not allowed
|
|
//~| ERROR `?` is not allowed
|
|
//~| ERROR `Try` is not yet stable as a const trait
|
|
//~| ERROR `FromResidual` is not yet stable as a const trait
|
|
None
|
|
}
|
|
|
|
fn main() {}
|