about summary refs log tree commit diff
path: root/tests/ui/traits/const-traits/ice-124857-combine-effect-const-infer-vars.rs
blob: d6df1714314aad6a80913d8ef9b228ab61c314a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ 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() {}