summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generic-associated-types/parse/trait-path-types.rs
blob: 74a00342ff4b526784c8490f75efe013bf3225be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
trait X {
    type Y<'a>;
}

const _: () = {
  fn f<'a>(arg : Box<dyn X< [u8; 1] = u32>>) {}
      //~^ ERROR: expected one of
};

const _: () = {
  fn f1<'a>(arg : Box<dyn X<(Y<'a>) = &'a ()>>) {}
      //~^ ERROR: expected one of
};

const _: () = {
  fn f1<'a>(arg : Box<dyn X< 'a = u32 >>) {}
      //~^ ERROR: expected one of
};

fn main() {}