summaryrefslogtreecommitdiffstats
path: root/tests/ui/associated-type-bounds/issue-104916.rs
blob: 3361fa011ed8e98c560fb18108bf967ab2cc3060 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![feature(associated_type_bounds)]

trait B {
    type AssocType;
}

fn f()
where
    dyn for<'j> B<AssocType: 'j>:,
    //~^ ERROR: associated type bounds are only allowed in where clauses and function signatures
{
}

fn main() {}