summary refs log tree commit diff
path: root/tests/ui/attributes/malformed-fn-align.stderr
blob: b769d0b457ddd8ea8c8560c9b4a35ad6fac499aa (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
error[E0539]: malformed `align` attribute input
  --> $DIR/malformed-fn-align.rs:5:5
   |
LL |     #[align]
   |     ^^^^^^^^
   |     |
   |     expected this to be a list
   |     help: must be of the form: `#[align(<alignment in bytes>)]`

error[E0805]: malformed `align` attribute input
  --> $DIR/malformed-fn-align.rs:8:5
   |
LL |     #[align(1, 2)]
   |     ^^^^^^^------^
   |     |      |
   |     |      expected a single argument here
   |     help: must be of the form: `#[align(<alignment in bytes>)]`

error[E0539]: malformed `align` attribute input
  --> $DIR/malformed-fn-align.rs:12:1
   |
LL | #[align = 16]
   | ^^^^^^^^^^^^^
   | |
   | expected this to be a list
   | help: must be of the form: `#[align(<alignment in bytes>)]`

error[E0589]: invalid alignment value: not an unsuffixed integer
  --> $DIR/malformed-fn-align.rs:15:9
   |
LL | #[align("hello")]
   |         ^^^^^^^

error[E0589]: invalid alignment value: not a power of two
  --> $DIR/malformed-fn-align.rs:18:9
   |
LL | #[align(0)]
   |         ^

error: `#[repr(align(...))]` is not supported on function items
  --> $DIR/malformed-fn-align.rs:21:8
   |
LL | #[repr(align(16))]
   |        ^^^^^^^^^
   |
help: use `#[align(...)]` instead
  --> $DIR/malformed-fn-align.rs:21:8
   |
LL | #[repr(align(16))]
   |        ^^^^^^^^^

error: `#[align(...)]` is not supported on struct items
  --> $DIR/malformed-fn-align.rs:24:1
   |
LL | #[align(16)]
   | ^^^^^^^^^^^^
   |
help: use `#[repr(align(...))]` instead
   |
LL - #[align(16)]
LL + #[repr(align(16))]
   |

error: aborting due to 7 previous errors

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