-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing dyn parse special cases in 2015 edition
- Loading branch information
Showing
4 changed files
with
162 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 8 additions & 3 deletions
11
crates/parser/test_data/parser/inline/ok/dyn_trait_type_weak.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
// 2015 | ||
type A = dyn Iterator<Item=Foo<'a>> + 'a; | ||
type A = &dyn Iterator<Item=Foo<'a>> + 'a; | ||
type A = dyn::Path; | ||
type DynPlain = dyn Path; | ||
type DynRef = &dyn Path; | ||
type DynLt = dyn 'a + Path; | ||
type DynQuestion = dyn ?Path; | ||
type DynFor = dyn for<'a> Path; | ||
type DynParen = dyn(Path); | ||
type Path = dyn::Path; | ||
type Generic = dyn<Path>; |