about summary refs log tree commit diff
path: root/tests/ui/traits/const-traits/const-impl-requires-const-trait.rs
blob: 6bea664b65fe6d290a6bdcbe314627279688d060 (plain)
1
2
3
4
5
6
7
8
9
//@ 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() {}