blob: d4faea1251762ea927ca4cbcdfa49a86904fd8a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
error[E0539]: malformed `repr` attribute input
--> $DIR/repr.rs:1:1
|
LL | #[repr]
| ^^^^^^^ expected this to be a list
|
= note: for more information, visit <https://doc.rust-lang.org/reference/type-layout.html#representations>
help: try changing it to one of the following valid forms of the attribute
|
LL | #[repr(<integer type>)]
| ++++++++++++++++
LL | #[repr(C)]
| +++
LL | #[repr(Rust)]
| ++++++
LL | #[repr(align(...))]
| ++++++++++++
= and 2 other candidates
error[E0539]: malformed `repr` attribute input
--> $DIR/repr.rs:4:1
|
LL | #[repr = "B"]
| ^^^^^^^^^^^^^ expected this to be a list
|
= note: for more information, visit <https://doc.rust-lang.org/reference/type-layout.html#representations>
help: try changing it to one of the following valid forms of the attribute
|
LL - #[repr = "B"]
LL + #[repr(<integer type>)]
|
LL - #[repr = "B"]
LL + #[repr(C)]
|
LL - #[repr = "B"]
LL + #[repr(Rust)]
|
LL - #[repr = "B"]
LL + #[repr(align(...))]
|
= and 2 other candidates
error[E0539]: malformed `repr` attribute input
--> $DIR/repr.rs:7:1
|
LL | #[repr = "C"]
| ^^^^^^^^^^^^^ expected this to be a list
|
= note: for more information, visit <https://doc.rust-lang.org/reference/type-layout.html#representations>
help: try changing it to one of the following valid forms of the attribute
|
LL - #[repr = "C"]
LL + #[repr(<integer type>)]
|
LL - #[repr = "C"]
LL + #[repr(C)]
|
LL - #[repr = "C"]
LL + #[repr(Rust)]
|
LL - #[repr = "C"]
LL + #[repr(align(...))]
|
= and 2 other candidates
error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0539`.
|