10 lines
198 B
Rust
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() {}
|