summaryrefslogtreecommitdiffstats
path: root/src/test/ui/test-attrs/test-attr-non-associated-functions.stderr
blob: a81b8f3980c374c7bc7c1112fc2a260d5a03f813 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error: `#[test]` attribute is only allowed on non associated functions
  --> $DIR/test-attr-non-associated-functions.rs:9:5
   |
LL | /     fn new() -> A {
LL | |
LL | |         A {}
LL | |     }
   | |_____^

error: `#[test]` attribute is only allowed on non associated functions
  --> $DIR/test-attr-non-associated-functions.rs:14:5
   |
LL | /     fn recovery_witness() -> A {
LL | |
LL | |         A {}
LL | |     }
   | |_____^

error: aborting due to 2 previous errors