Files
rust/tests/ui/consts/const-try-feature-gate.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
282 B
Rust
Raw Normal View History

// 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
None
}
fn main() {}