Unnamed repository; edit this file 'description' to name the repository.
fix: `use` cannot have optional generics
Co-authored-by: Lukas Wirth <[email protected]>
Winston H. 2024-07-24
parent 4a91453 · commit 5af51fa
-rw-r--r--crates/syntax/rust.ungram2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/syntax/rust.ungram b/crates/syntax/rust.ungram
index 272796bb3b..c23bcd6914 100644
--- a/crates/syntax/rust.ungram
+++ b/crates/syntax/rust.ungram
@@ -629,7 +629,7 @@ TypeBoundList =
TypeBound =
Lifetime
| ('~' 'const' | 'const')? 'async'? '?'? Type
-| 'use' GenericParamList?
+| 'use' GenericParamList
//************************//
// Patterns //