rust / latest / std / prelude / v1 / attr.test.html

Attribute Macro std::prelude::v1::test

#[test]

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

See the reference for more info.

© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/prelude/v1/attr.test.html