summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/issues/issue-87493.rs
blob: 80472e6bd9c52c532eb224b1d2faa069accbe9a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub trait MyTrait {
    type Assoc;
}

pub fn foo<S, T>(_s: S, _t: T)
where
    S: MyTrait,
    T: MyTrait<Assoc == S::Assoc>,
    //~^ ERROR: expected one of `,` or `>`, found `==`
    //~| ERROR: trait takes 0 generic arguments but 1 generic argument was supplied
{
}

fn main() {}