rust/tests/ui/rfcs/rfc-2632-const-trait-impl/const-impl-requires-const-trait.rs
2023-08-06 13:34:53 +00:00

12 lines
240 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() {}