blob: ad14dd62bc7b5b7c021522214501e23283bd6e11 [file] [log] [blame]
// Regression test for #69615.
#![feature(const_trait_impl)]
#![allow(incomplete_features)]
pub trait MyTrait {
fn method(&self) -> Option<()>;
}
impl const MyTrait for () {
fn method(&self) -> Option<()> {
Some(())?; //~ ERROR `?` is not allowed in a `const fn`
None
}
}
fn main() {}