about summary refs log tree commit diff
path: root/tests/ui/invalid/invalid_rustc_layout_scalar_valid_range.stderr
blob: 6d5a22e4cedb125be591d1c7eb09dcee5c559f7a (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
error[E0539]: malformed `rustc_layout_scalar_valid_range_start` attribute input
  --> $DIR/invalid_rustc_layout_scalar_valid_range.rs:3:1
   |
LL | #[rustc_layout_scalar_valid_range_start(u32::MAX)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--------^^
   | |                                       |
   | |                                       expected an integer literal here
   | help: must be of the form: `#[rustc_layout_scalar_valid_range_start(start)]`

error[E0805]: malformed `rustc_layout_scalar_valid_range_end` attribute input
  --> $DIR/invalid_rustc_layout_scalar_valid_range.rs:6:1
   |
LL | #[rustc_layout_scalar_valid_range_end(1, 2)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------^
   | |                                    |
   | |                                    expected a single argument here
   | help: must be of the form: `#[rustc_layout_scalar_valid_range_end(end)]`

error[E0539]: malformed `rustc_layout_scalar_valid_range_end` attribute input
  --> $DIR/invalid_rustc_layout_scalar_valid_range.rs:9:1
   |
LL | #[rustc_layout_scalar_valid_range_end(a = "a")]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-------^^
   | |                                     |
   | |                                     expected an integer literal here
   | help: must be of the form: `#[rustc_layout_scalar_valid_range_end(end)]`

error: `#[rustc_layout_scalar_valid_range_end]` attribute cannot be used on enums
  --> $DIR/invalid_rustc_layout_scalar_valid_range.rs:12:1
   |
LL | #[rustc_layout_scalar_valid_range_end(1)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: `#[rustc_layout_scalar_valid_range_end]` can only be applied to structs

error[E0539]: malformed `rustc_layout_scalar_valid_range_start` attribute input
  --> $DIR/invalid_rustc_layout_scalar_valid_range.rs:18:1
   |
LL | #[rustc_layout_scalar_valid_range_start(rustc_layout_scalar_valid_range_start)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-------------------------------------^^
   | |                                       |
   | |                                       expected an integer literal here
   | help: must be of the form: `#[rustc_layout_scalar_valid_range_start(start)]`

error: aborting due to 5 previous errors

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