about summary refs log tree commit diff
path: root/tests/ui/traits/next-solver/normalization-shadowing/param-env-impl-conflict.rs
blob: 1b9e9866cd60e216831be11328f878ecf39b07d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//@ compile-flags: -Znext-solver
//@ check-pass

// Regression test for #119608.

pub trait Foo {}

pub trait Bar {
    type Assoc;
}

impl<T: Foo> Bar for T {
    type Assoc = T;
}

pub fn foo<I>(_input: <I as Bar>::Assoc)
where
    I: Bar,
    <I as Bar>::Assoc: Foo,
{
}

fn main() {}