Skip to content

Commit c867c23

Browse files
committed
Add attributes.testing.test.syntax
1 parent b2d234a commit c867c23

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/attributes/testing.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ The *`test` [attribute][attributes]* marks a function to be executed as a test.
2626
> }
2727
> ```
2828
29+
r[attributes.testing.test.syntax]
30+
The `test` attribute uses the [MetaWord] syntax and thus does not take any inputs.
31+
2932
r[attributes.testing.test.allowed-positions]
3033
Test functions must be free, monomorphic functions that take no arguments, and the return type must implement the [`Termination`] trait, for example:
3134

0 commit comments

Comments
 (0)