]>
Commit | Line | Data |
---|---|---|
416331ca | 1 | error: `#[test]` attribute is only allowed on non associated functions |
0731742a | 2 | --> $DIR/test-attr-non-associated-functions.rs:9:5 |
a1dfa0c6 | 3 | | |
532ac7d7 | 4 | LL | / fn new() -> A { |
ba9703b0 | 5 | LL | | |
a1dfa0c6 XL |
6 | LL | | A {} |
7 | LL | | } | |
8 | | |_____^ | |
9 | ||
ba9703b0 XL |
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 | |
a1dfa0c6 | 20 |