fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: the `#[test]` attribute may only be used on a non-associated function 2 --> $DIR/test-attr-non-associated-functions.rs:6:5 3 | 4LL | #[test] 5 | ^^^^^^^ the `#[test]` macro causes a function to be run as a test and has no effect on non-functions 6 | 7help: replace with conditional compilation to make the item only exist when tests are being run 8 | 9LL | #[cfg(test)] 10 | 11 12error: the `#[test]` attribute may only be used on a non-associated function 13 --> $DIR/test-attr-non-associated-functions.rs:11:5 14 | 15LL | #[test] 16 | ^^^^^^^ the `#[test]` macro causes a function to be run as a test and has no effect on non-functions 17 | 18help: replace with conditional compilation to make the item only exist when tests are being run 19 | 20LL | #[cfg(test)] 21 | 22 23error: aborting due to 2 previous errors 24