about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2014-10-08 16:45:42 -0400
committerSteve Klabnik <steve@steveklabnik.com>2014-10-08 16:46:01 -0400
commit557014cd8361db4e9bd10404f4c2e3e7ab64193e (patch)
tree76a6e713f8c7cb597d599bae85d2623d8d06e636
parent3f1ed8608d6c049b4f5beab95fe8acd5ae310b76 (diff)
downloadrust-557014cd8361db4e9bd10404f4c2e3e7ab64193e.tar.gz
rust-557014cd8361db4e9bd10404f4c2e3e7ab64193e.zip
add mention of test attribute
Fixes #16413
-rw-r--r--src/doc/reference.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md
index 7c0caf0d915..761d33c7b43 100644
--- a/src/doc/reference.md
+++ b/src/doc/reference.md
@@ -1924,6 +1924,8 @@ type int8_t = i8;
 - `start` - indicates that this function should be used as the entry point,
   overriding the "start" language item. See the "start" [language
   item](#language-items) for more details.
+- `test` - indicates that this function is a test function, to only be compiled
+  in case of `--test`.
 
 ### Static-only attributes