blob: ea4db0515cd4408e2d8c2bdbf525d221a9392025 [file] [log] [blame]
//@ compile-flags: -Znext-solver=coherence
#![feature(const_trait_impl)]
#[const_trait]
trait Foo {}
impl const Foo for i32 {}
impl<T> const Foo for T where T: [const] Foo {}
//~^ ERROR conflicting implementations of trait `Foo` for type `i32`
fn main() {}