]> git.lizzy.rs Git - rust.git/blob - src/test/ui/invalid/invalid_rustc_layout_scalar_valid_range.stderr
Auto merge of #103894 - mati865:gnullvm-libunwind-changes, r=thomcc
[rust.git] / src / test / ui / invalid / invalid_rustc_layout_scalar_valid_range.stderr
1 error: expected exactly one integer literal argument
2   --> $DIR/invalid_rustc_layout_scalar_valid_range.rs:3:1
3    |
4 LL | #[rustc_layout_scalar_valid_range_start(u32::MAX)]
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
7 error: expected exactly one integer literal argument
8   --> $DIR/invalid_rustc_layout_scalar_valid_range.rs:6:1
9    |
10 LL | #[rustc_layout_scalar_valid_range_end(1, 2)]
11    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13 error: expected exactly one integer literal argument
14   --> $DIR/invalid_rustc_layout_scalar_valid_range.rs:9:1
15    |
16 LL | #[rustc_layout_scalar_valid_range_end(a = "a")]
17    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18
19 error: attribute should be applied to a struct
20   --> $DIR/invalid_rustc_layout_scalar_valid_range.rs:12:1
21    |
22 LL |   #[rustc_layout_scalar_valid_range_end(1)]
23    |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24 LL | / enum E {
25 LL | |     X = 1,
26 LL | |     Y = 14,
27 LL | | }
28    | |_- not a struct
29
30 error: expected exactly one integer literal argument
31   --> $DIR/invalid_rustc_layout_scalar_valid_range.rs:18:1
32    |
33 LL | #[rustc_layout_scalar_valid_range_start(rustc_layout_scalar_valid_range_start)]
34    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
35
36 error: aborting due to 5 previous errors
37