class X::Syntax::Variable::Match does X::Syntax { }

Syntax error thrown when a match variable like $<thing> was declared.

For example

my $<thing>;

dies with

===SORRY!===
Cannot declare a match variable

Typegraph§

Type relations for X::Syntax::Variable::Match
Rakudo Type Relation for Match Match Match Capture Capture Match->Capture is Cool Cool Match->Cool is NQPMatchRole NQPMatchRole Match->NQPMatchRole does

Expand chart above