1
1
error: attribute should be applied to a function definition
2
- --> $DIR/no-sanitize.rs:7 :5
2
+ --> $DIR/no-sanitize.rs:6 :5
3
3
|
4
4
LL | #[no_sanitize(memory)]
5
5
| ^^^^^^^^^^^^^^^^^^^^^^
@@ -9,39 +9,39 @@ LL | | };
9
9
| |_____- not a function definition
10
10
11
11
error: attribute should be applied to a function definition
12
- --> $DIR/no-sanitize.rs:13 :1
12
+ --> $DIR/no-sanitize.rs:12 :1
13
13
|
14
14
LL | #[no_sanitize(memory)]
15
15
| ^^^^^^^^^^^^^^^^^^^^^^
16
16
LL | type InvalidTy = ();
17
17
| -------------------- not a function definition
18
18
19
19
error: attribute should be applied to a function definition
20
- --> $DIR/no-sanitize.rs:16 :1
20
+ --> $DIR/no-sanitize.rs:15 :1
21
21
|
22
22
LL | #[no_sanitize(memory)]
23
23
| ^^^^^^^^^^^^^^^^^^^^^^
24
24
LL | mod invalid_module {}
25
25
| --------------------- not a function definition
26
26
27
27
error: attribute should be applied to a function definition
28
- --> $DIR/no-sanitize.rs:20 :13
28
+ --> $DIR/no-sanitize.rs:19 :13
29
29
|
30
30
LL | let _ = #[no_sanitize(memory)]
31
31
| ^^^^^^^^^^^^^^^^^^^^^^
32
32
LL | (|| 1);
33
33
| ------ not a function definition
34
34
35
35
error: attribute should be applied to a function definition
36
- --> $DIR/no-sanitize.rs:24 :1
36
+ --> $DIR/no-sanitize.rs:23 :1
37
37
|
38
38
LL | #[no_sanitize(memory)]
39
39
| ^^^^^^^^^^^^^^^^^^^^^^
40
40
LL | struct F;
41
41
| --------- not a function definition
42
42
43
43
error: attribute should be applied to a function definition
44
- --> $DIR/no-sanitize.rs:27 :1
44
+ --> $DIR/no-sanitize.rs:26 :1
45
45
|
46
46
LL | #[no_sanitize(memory)]
47
47
| ^^^^^^^^^^^^^^^^^^^^^^
0 commit comments