summaryrefslogtreecommitdiffstats
path: root/tests/ui/generic-associated-types/parse/trait-path-types.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/generic-associated-types/parse/trait-path-types.stderr')
-rw-r--r--tests/ui/generic-associated-types/parse/trait-path-types.stderr41
1 files changed, 41 insertions, 0 deletions
diff --git a/tests/ui/generic-associated-types/parse/trait-path-types.stderr b/tests/ui/generic-associated-types/parse/trait-path-types.stderr
new file mode 100644
index 000000000..8f7a73c95
--- /dev/null
+++ b/tests/ui/generic-associated-types/parse/trait-path-types.stderr
@@ -0,0 +1,41 @@
+error: expected one of `,`, `:`, or `>`, found `=`
+ --> $DIR/trait-path-types.rs:6:37
+ |
+LL | fn f<'a>(arg : Box<dyn X< [u8; 1] = u32>>) {}
+ | - ^ expected one of `,`, `:`, or `>`
+ | |
+ | maybe try to close unmatched angle bracket
+ |
+help: you might have meant to end the type parameters here
+ |
+LL | fn f<'a>(arg : Box<dyn X< [u8; 1]> = u32>>) {}
+ | +
+
+error: expected one of `,`, `:`, or `>`, found `=`
+ --> $DIR/trait-path-types.rs:11:37
+ |
+LL | fn f1<'a>(arg : Box<dyn X<(Y<'a>) = &'a ()>>) {}
+ | - ^ expected one of `,`, `:`, or `>`
+ | |
+ | maybe try to close unmatched angle bracket
+ |
+help: you might have meant to end the type parameters here
+ |
+LL | fn f1<'a>(arg : Box<dyn X<(Y<'a>)> = &'a ()>>) {}
+ | +
+
+error: expected one of `,`, `:`, or `>`, found `=`
+ --> $DIR/trait-path-types.rs:16:33
+ |
+LL | fn f1<'a>(arg : Box<dyn X< 'a = u32 >>) {}
+ | -- ^ expected one of `,`, `:`, or `>`
+ | |
+ | maybe try to close unmatched angle bracket
+ |
+help: you might have meant to end the type parameters here
+ |
+LL | fn f1<'a>(arg : Box<dyn X< 'a> = u32 >>) {}
+ | +
+
+error: aborting due to 3 previous errors
+