]> git.lizzy.rs Git - rust.git/blob - src/test/ui/test-attrs/test-attr-non-associated-functions.stderr
:arrow_up: rust-analyzer
[rust.git] / src / test / ui / test-attrs / test-attr-non-associated-functions.stderr
1 error: `#[test]` attribute is only allowed on non associated functions
2   --> $DIR/test-attr-non-associated-functions.rs:9:5
3    |
4 LL | /     fn new() -> A {
5 LL | |
6 LL | |         A {}
7 LL | |     }
8    | |_____^
9
10 error: `#[test]` attribute is only allowed on non associated functions
11   --> $DIR/test-attr-non-associated-functions.rs:14:5
12    |
13 LL | /     fn recovery_witness() -> A {
14 LL | |
15 LL | |         A {}
16 LL | |     }
17    | |_____^
18
19 error: aborting due to 2 previous errors
20