In X::Declaration::Scope§

See primary documentation in context for method declaration

method declaration(--> Str:D)

Describes the symbol that has been declared in a wrong scope.