fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
527 B16 linesraw
1error: the `#[test]` attribute may only be used on a non-associated function
2  --> $DIR/issue-109816.rs:4:5
3   |
4LL |     #[test]
5   |     ^^^^^^^ the `#[test]` macro causes a function to be run as a test and has no effect on non-functions
6LL |
7LL |     struct A5(u32, u8);
8   |     ------------------- expected a non-associated function, found a struct
9   |
10help: replace with conditional compilation to make the item only exist when tests are being run
11   |
12LL |     #[cfg(test)]
13   |
14
15error: aborting due to previous error
16