about summary refs log tree commit diff
path: root/tests/ui/traits/const-traits/const-impl-requires-const-trait.rs
blob: 176ae091a41a6dabd335d70fb66030f9453eed91 (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 `const`

fn main() {}