]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/gat-trait-path-parenthesised-args.rs
Rollup merge of #82308 - estebank:issue-82290, r=lcnr
[rust.git] / src / test / ui / generic-associated-types / gat-trait-path-parenthesised-args.rs
1 #![feature(generic_associated_types)]
2   //~^ WARNING: the feature `generic_associated_types` is incomplete
3
4 trait X {
5   type Y<'a>;
6     //~^ ERROR this associated type
7     //~| ERROR this associated type
8 }
9
10 fn foo<'a>(arg: Box<dyn X<Y('a) = &'a ()>>) {}
11   //~^ ERROR: lifetime in trait object type must be followed by `+`
12   //~| ERROR: parenthesized generic arguments cannot be used
13   //~| WARNING: trait objects without an explicit `dyn` are deprecated
14
15 fn main() {}