File: malformed-repr-hints.stderr

package info (click to toggle)
rustc 1.85.0%2Bdfsg3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 893,396 kB
  • sloc: xml: 158,127; python: 35,830; javascript: 19,497; cpp: 19,002; sh: 17,245; ansic: 13,127; asm: 4,376; makefile: 1,051; perl: 29; lisp: 29; ruby: 19; sql: 11
file content (64 lines) | stat: -rw-r--r-- 2,031 bytes parent folder | download | duplicates (5)
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
error[E0552]: incorrect `repr(packed)` attribute format: `packed` takes exactly one parenthesized argument, or no parentheses at all
  --> $DIR/malformed-repr-hints.rs:6:8
   |
LL | #[repr(packed())]
   |        ^^^^^^^^

error[E0589]: invalid `repr(align)` attribute: `align` needs an argument
  --> $DIR/malformed-repr-hints.rs:10:8
   |
LL | #[repr(align)]
   |        ^^^^^ help: supply an argument here: `align(...)`

error[E0693]: incorrect `repr(align)` attribute format: `align` takes exactly one argument in parentheses
  --> $DIR/malformed-repr-hints.rs:14:8
   |
LL | #[repr(align(2, 4))]
   |        ^^^^^^^^^^^

error[E0693]: incorrect `repr(align)` attribute format: `align` takes exactly one argument in parentheses
  --> $DIR/malformed-repr-hints.rs:18:8
   |
LL | #[repr(align())]
   |        ^^^^^^^

error[E0552]: invalid representation hint: `Rust` does not take a parenthesized argument list
  --> $DIR/malformed-repr-hints.rs:23:8
   |
LL | #[repr(Rust(u8))]
   |        ^^^^^^^^

error[E0552]: invalid representation hint: `Rust` does not take a parenthesized argument list
  --> $DIR/malformed-repr-hints.rs:25:8
   |
LL | #[repr(Rust(0))]
   |        ^^^^^^^

error[E0552]: invalid representation hint: `Rust` does not take a value
  --> $DIR/malformed-repr-hints.rs:27:8
   |
LL | #[repr(Rust = 0)]
   |        ^^^^^^^^

error[E0552]: invalid representation hint: `i8` does not take a parenthesized argument list
  --> $DIR/malformed-repr-hints.rs:31:8
   |
LL | #[repr(i8())]
   |        ^^^^

error[E0552]: invalid representation hint: `u32` does not take a parenthesized argument list
  --> $DIR/malformed-repr-hints.rs:35:8
   |
LL | #[repr(u32(42))]
   |        ^^^^^^^

error[E0552]: invalid representation hint: `i64` does not take a value
  --> $DIR/malformed-repr-hints.rs:39:8
   |
LL | #[repr(i64 = 2)]
   |        ^^^^^^^

error: aborting due to 10 previous errors

Some errors have detailed explanations: E0552, E0589, E0693.
For more information about an error, try `rustc --explain E0552`.