mirror of https://github.com/rust-lang/rust
15 lines
301 B
Rust
15 lines
301 B
Rust
//@ compile-flags: -Znext-solver=coherence
|
|
|
|
#![allow(incomplete_features)]
|
|
#![feature(const_trait_impl, effects)]
|
|
|
|
#[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() {}
|