2022-08-28 04:17:12 +00:00
|
|
|
#![feature(const_trait_impl)]
|
|
|
|
|
|
|
|
pub trait A {}
|
2022-10-04 08:59:20 +00:00
|
|
|
//~^ HELP: mark `A` as const
|
2022-08-28 04:17:12 +00:00
|
|
|
|
|
|
|
impl const A for () {}
|
2022-10-04 08:59:20 +00:00
|
|
|
//~^ ERROR: const `impl` for trait `A` which is not marked with `#[const_trait]`
|
2022-08-28 04:17:12 +00:00
|
|
|
|
|
|
|
fn main() {}
|