rust/tests/ui/traits/const-traits/const-impl-requires-const-trait.rs
2024-11-03 18:59:31 +00:00

10 lines
198 B
Rust

//@ compile-flags: -Znext-solver
#![feature(const_trait_impl)]
pub trait A {}
impl const A for () {}
//~^ ERROR: const `impl` for trait `A` which is not marked with `#[const_trait]`
fn main() {}