From b26002410b5acda8d0e1322071881cdb8a2b6724 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Mon, 18 Jan 2021 19:50:13 +0100 Subject: Parse `impl const Trait` --- crates/parser/src/grammar/items/traits.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crates/parser/src/grammar/items/traits.rs') 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) { type_params::opt_generic_param_list(p); } + // test impl_def_const + // impl const Send for X {} + p.eat(T![const]); + // FIXME: never type // impl ! {} -- cgit v1.2.3