summary refs log tree commit diff
path: root/src/test/ui/repr.stderr
blob: 7a99d8c04488f2c38c8d3a79c1ea6dfdf00bf879 (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
warning: `repr` attribute must have a hint
  --> $DIR/repr.rs:13:1
   |
LL | #[repr]
   | ^^^^^^^ needs a hint
   |
   = note: #[warn(bad_repr)] on by default
   = help: valid hints include `#[repr(C)]`, `#[repr(packed)]`, `#[repr(rust)]` and `#[repr(transparent)]`
   = note: for more information, visit <https://doc.rust-lang.org/reference/type-layout.html>

warning: `repr` attribute isn't configurable with a literal
  --> $DIR/repr.rs:17:1
   |
LL | #[repr = "B"]
   | ^^^^^^^^^^^^^ needs a hint
   |
   = help: valid hints include `#[repr(C)]`, `#[repr(packed)]`, `#[repr(rust)]` and `#[repr(transparent)]`
   = note: for more information, visit <https://doc.rust-lang.org/reference/type-layout.html>

warning: `repr` attribute isn't configurable with a literal
  --> $DIR/repr.rs:21:1
   |
LL | #[repr = "C"]
   | ^^^^^^^^^^^^^ help: give `repr` a hint: `#[repr(C)]`