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

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

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

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

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

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

error: `#[rustc_align(...)]` is not supported on struct items
  --> $DIR/malformed-fn-align.rs:29:1
   |
LL | #[rustc_align(16)]
   | ^^^^^^^^^^^^^^^^^^
   |
help: use `#[repr(align(...))]` instead
   |
LL - #[rustc_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`.