trait is DEPRECATED

Documentation for trait is DEPRECATED assembled from the following types:

class Routine

From Routine

(Routine) trait is DEPRECATED

multi sub trait_mod:<is>(Routine:D $r:$DEPRECATED!)

Marks a routine as deprecated, optionally with a message what to use instead.

This code

sub f() is DEPRECATED('the literal 42'{ 42 }
say f();

produces this output:

42
Saw 1 occurrence of deprecated code.
================================================================================
Sub f (from GLOBALseen at:
  deprecated.p6line 2
Please use the literal 42 instead.
--------------------------------------------------------------------------------
Please contact the author to have these occurrences of deprecated code
adaptedso that this message will disappear!