]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/const-try-feature-gate.rs
Auto merge of #106458 - albertlarsan68:move-tests, r=jyn514
[rust.git] / tests / ui / consts / const-try-feature-gate.rs
1 // gate-test-const_try
2
3 const fn t() -> Option<()> {
4     Some(())?;
5     //~^ error: `?` is not allowed in a `const fn`
6     None
7 }
8
9 fn main() {}