]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/rfc-2632-const-trait-impl/hir-const-check.rs
1 // Regression test for #69615.
3 #![feature(const_trait_impl)]
6 fn method(&self) -> Option
<()>;
9 impl const MyTrait
for () {
10 fn method(&self) -> Option
<()> {
11 Some(())?
; //~ ERROR `?` is not allowed in a `const fn`