summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfc-2632-const-trait-impl/const-impl-requires-const-trait.rs
blob: 2b4963991dbefacd4a08c3e1f9baba36831cca35 (plain)
1
2
3
4
5
6
7
8
9
#![feature(const_trait_impl)]

pub trait A {}
//~^ HELP: mark `A` as const

impl const A for () {}
//~^ ERROR: const `impl` for trait `A` which is not marked with `#[const_trait]`

fn main() {}