diff options
Diffstat (limited to 'src/test/ui/generic-associated-types/parse/trait-path-expected-token.rs')
-rw-r--r-- | src/test/ui/generic-associated-types/parse/trait-path-expected-token.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/generic-associated-types/parse/trait-path-expected-token.rs b/src/test/ui/generic-associated-types/parse/trait-path-expected-token.rs new file mode 100644 index 000000000..be85598b7 --- /dev/null +++ b/src/test/ui/generic-associated-types/parse/trait-path-expected-token.rs @@ -0,0 +1,10 @@ +#![feature(generic_associated_types)] + +trait X { + type Y<'a>; +} + +fn f1<'a>(arg : Box<dyn X<Y = B = &'a ()>>) {} + //~^ ERROR: expected one of `!`, `(`, `+`, `,`, `::`, `<`, or `>`, found `=` + +fn main() {} |