aboutsummaryrefslogtreecommitdiff
path: root/crates/parser/src/grammar
diff options
context:
space:
mode:
authorLukas Wirth <[email protected]>2021-01-18 18:50:13 +0000
committerLukas Wirth <[email protected]>2021-01-18 19:18:02 +0000
commitb26002410b5acda8d0e1322071881cdb8a2b6724 (patch)
tree74850f9de3f7e9ad16c179e518cde3df0a936a71 /crates/parser/src/grammar
parent6105dbfc2ee811f23255e74c45450c50cc155e85 (diff)
Parse `impl const Trait`
Diffstat (limited to 'crates/parser/src/grammar')
-rw-r--r--crates/parser/src/grammar/items/traits.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/parser/src/grammar/items/traits.rs b/crates/parser/src/grammar/items/traits.rs
index d076974ed..d3327271c 100644
--- a/crates/parser/src/grammar/items/traits.rs
+++ b/crates/parser/src/grammar/items/traits.rs
@@ -40,6 +40,10 @@ pub(super) fn impl_(p: &mut Parser) {
40 type_params::opt_generic_param_list(p); 40 type_params::opt_generic_param_list(p);
41 } 41 }
42 42
43 // test impl_def_const
44 // impl const Send for X {}
45 p.eat(T![const]);
46
43 // FIXME: never type 47 // FIXME: never type
44 // impl ! {} 48 // impl ! {}
45 49