diff options
Diffstat (limited to 'src/test/ui/rfc-2632-const-trait-impl/hir-const-check.rs')
-rw-r--r-- | src/test/ui/rfc-2632-const-trait-impl/hir-const-check.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/test/ui/rfc-2632-const-trait-impl/hir-const-check.rs b/src/test/ui/rfc-2632-const-trait-impl/hir-const-check.rs deleted file mode 100644 index 337c73340..000000000 --- a/src/test/ui/rfc-2632-const-trait-impl/hir-const-check.rs +++ /dev/null @@ -1,17 +0,0 @@ -// Regression test for #69615. - -#![feature(const_trait_impl)] - -#[const_trait] -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() {} |