2024-06-25 10:44:00 +00:00
|
|
|
//@ compile-flags: -Znext-solver=coherence
|
|
|
|
|
|
2024-10-30 18:03:44 +00:00
|
|
|
#![feature(const_trait_impl)]
|
2024-06-25 10:44:00 +00:00
|
|
|
|
|
|
|
|
#[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() {}
|