diff options
| author | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2020-01-20 01:20:45 -0800 |
|---|---|---|
| committer | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2020-01-20 01:28:10 -0800 |
| commit | 0ac4ba0eed776599e2d9f2ef76f6ae94a4471a4e (patch) | |
| tree | e2bcafc66d84cf59670c6726d1714a64598ef306 /src/libsyntax | |
| parent | 3b1a9d35c8ee396d2c546603347b5dc65d619cdf (diff) | |
| download | rust-0ac4ba0eed776599e2d9f2ef76f6ae94a4471a4e.tar.gz rust-0ac4ba0eed776599e2d9f2ef76f6ae94a4471a4e.zip | |
Parse `?const ?Trait`
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ast.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index 88bfb8ccb95..5f38ac4cc0f 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -279,6 +279,11 @@ pub enum TraitBoundModifier { /// `?const Trait` MaybeConst, + + /// `?const ?Trait` + // + // This parses but will be rejected during AST validation. + MaybeConstMaybe, } /// The AST represents all type param bounds as types. |
