rust/src/test/ui/repr.stderr

26 lines
873 B
Plaintext
Raw Normal View History

warning: `repr` attribute must have a hint
2018-12-25 15:56:47 +00:00
--> $DIR/repr.rs:3:1
|
LL | #[repr]
| ^^^^^^^ needs a hint
|
2018-06-06 21:11:48 +00:00
= note: #[warn(bad_repr)] on by default
2018-06-06 21:18:13 +00:00
= help: valid hints include `#[repr(C)]`, `#[repr(packed)]`, `#[repr(rust)]` and `#[repr(transparent)]`
2018-06-06 21:33:07 +00:00
= note: for more information, visit <https://doc.rust-lang.org/reference/type-layout.html>
warning: `repr` attribute isn't configurable with a literal
2018-12-25 15:56:47 +00:00
--> $DIR/repr.rs:7:1
|
LL | #[repr = "B"]
| ^^^^^^^^^^^^^ needs a hint
|
2018-06-06 21:18:13 +00:00
= help: valid hints include `#[repr(C)]`, `#[repr(packed)]`, `#[repr(rust)]` and `#[repr(transparent)]`
2018-06-06 21:33:07 +00:00
= note: for more information, visit <https://doc.rust-lang.org/reference/type-layout.html>
warning: `repr` attribute isn't configurable with a literal
2018-12-25 15:56:47 +00:00
--> $DIR/repr.rs:11:1
|
LL | #[repr = "C"]
| ^^^^^^^^^^^^^ help: give `repr` a hint: `#[repr(C)]`