rust/tests/ui/repr/attr-usage-repr.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
917 B
Plaintext
Raw Normal View History

error[E0517]: attribute should be applied to a struct, enum, or union
2019-05-27 00:26:11 -05:00
--> $DIR/attr-usage-repr.rs:3:8
|
2019-03-09 06:03:44 -06:00
LL | #[repr(C)]
| ^
2018-02-22 18:42:32 -06:00
LL | fn f() {}
| --------- not a struct, enum, or union
error[E0517]: attribute should be applied to an enum
2019-05-27 00:26:11 -05:00
--> $DIR/attr-usage-repr.rs:15:8
|
2019-03-09 06:03:44 -06:00
LL | #[repr(i8)]
| ^^
2018-02-22 18:42:32 -06:00
LL | struct SInt(f64, f64);
| ---------------------- not an enum
error[E0517]: attribute should be applied to a struct or union
2019-05-27 00:26:11 -05:00
--> $DIR/attr-usage-repr.rs:24:8
|
2019-03-09 06:03:44 -06:00
LL | #[repr(packed)]
| ^^^^^^
2018-02-22 18:42:32 -06:00
LL | enum EPacked { A, B }
| --------------------- not a struct or union
error[E0517]: attribute should be applied to a struct
2019-05-27 00:26:11 -05:00
--> $DIR/attr-usage-repr.rs:27:8
|
2019-03-09 06:03:44 -06:00
LL | #[repr(simd)]
| ^^^^
2018-02-22 18:42:32 -06:00
LL | enum ESimd { A, B }
| ------------------- not a struct
error: aborting due to 4 previous errors
2018-03-03 08:59:40 -06:00
For more information about this error, try `rustc --explain E0517`.