about summary refs log tree commit diff
path: root/tests/ui/traits/next-solver/coherence/coherence-fulfill-overflow.rs
blob: 3fd22c7dbf0c10b4f11bd4bb78d423ec480706ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//@ compile-flags: -Znext-solver=coherence

#![feature(rustc_attrs)]
#![rustc_no_implicit_bounds]
#![recursion_limit = "10"]

trait Trait {}

struct W<T>(*const T);
trait TwoW {}
impl<T: TwoW> TwoW for W<W<T>> {}

impl<T: TwoW> Trait for W<T> {}
impl<T: TwoW> Trait for T {}
//~^ ERROR conflicting implementations of trait `Trait` for type `W

fn main() {}