]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/generic-associated-types/parse/trait-path-expressions.stderr
Provide suggestion for missing `>` in a type parameter list
[rust.git] / src / test / ui / generic-associated-types / parse / trait-path-expressions.stderr
index b1fea6d33a7f0e5c6ec522b352fa9a5629b43143..272afc10b17b54659809cc42c53f8665b78b819f 100644 (file)
@@ -13,6 +13,11 @@ LL |   fn f2<'a>(arg : Box<dyn X< { 1 } = 32 >>) {}
    |                                  - ^ expected one of `,`, `:`, or `>`
    |                                  |
    |                                  maybe try to close unmatched angle bracket
+   |
+help: you might have meant to end the type parameters here
+   |
+LL |   fn f2<'a>(arg : Box<dyn X< { 1 }> = 32 >>) {}
+   |                                   +
 
 error: aborting due to 2 previous errors