import std::path::Path; #[test, abcd(foo, bar = "blub")] import std::error::Error; #[test] data Rect { #[test] x: i32, y: i32, width: i32, height: i32, }; #[test] enum SomeEnum { A = 5, B, #[test] D, }; #[test] service Abcd { #[test] depends on some::other::Service; #[test] fn test(#[whatever(a = "2")] i: i32, u: u32) -> String; fn test(#[whatever] i: i32, f: f32) -> String; #[throws(Error)] handles read_file(path: Path) -> String; event some_event(i: i32, f: f32); };