2022-08-28 04:17:12 +00:00
|
|
|
#![feature(const_trait_impl)]
|
|
|
|
|
|
|
|
pub trait A {}
|
|
|
|
//~^ NOTE: this trait must be annotated with `#[const_trait]`
|
|
|
|
|
|
|
|
impl const A for () {}
|
|
|
|
//~^ ERROR: const `impl`s must be for traits marked with `#[const_trait]`
|
2022-10-03 17:08:42 +00:00
|
|
|
//~| ERROR: ~const can only be applied to `#[const_trait]` traits
|
2022-08-28 04:17:12 +00:00
|
|
|
|
|
|
|
fn main() {}
|