rust/tests/ui/rfcs/rfc-2632-const-trait-impl/const-impl-requires-const-trait.rs
2024-02-16 20:02:50 +00:00

12 lines
241 B
Rust

//@ known-bug: #110395
#![feature(const_trait_impl, effects)]
pub trait A {}
// FIXME ~^ HELP: mark `A` as const
impl const A for () {}
// FIXME ~^ ERROR: const `impl` for trait `A` which is not marked with `#[const_trait]`
fn main() {}