pub macro test($item:item) {
    ...
}
Expand description

Attribute macro applied to a function to turn it into a unit test.

See the reference for more info.