Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/parser/src/grammar/items/traits.rs')
-rw-r--r--crates/parser/src/grammar/items/traits.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/crates/parser/src/grammar/items/traits.rs b/crates/parser/src/grammar/items/traits.rs
index c1b1a3fc8a..4e48a4c506 100644
--- a/crates/parser/src/grammar/items/traits.rs
+++ b/crates/parser/src/grammar/items/traits.rs
@@ -54,12 +54,13 @@ pub(super) fn impl_(p: &mut Parser<'_>, m: Marker) {
// impl const Send for S {}
p.eat(T![const]);
- // FIXME: never type
+ // test impl_item_never_type
// impl ! {}
-
- // test impl_item_neg
- // impl !Send for S {}
- p.eat(T![!]);
+ if p.at(T![!]) && !p.nth_at(1, T!['{']) {
+ // test impl_item_neg
+ // impl !Send for S {}
+ p.eat(T![!]);
+ }
impl_type(p);
if p.eat(T![for]) {
impl_type(p);