rust/tests/ui/error-codes/E0517.rs

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

16 lines
221 B
Rust
Raw Normal View History

2017-11-14 16:45:18 -06:00
#[repr(C)] //~ ERROR: E0517
type Foo = u8;
2016-08-25 17:14:20 -05:00
2017-11-14 16:45:18 -06:00
#[repr(packed)] //~ ERROR: E0517
enum Foo2 {Bar, Baz}
2016-08-25 17:14:20 -05:00
2017-11-14 16:45:18 -06:00
#[repr(u8)] //~ ERROR: E0517
struct Foo3 {bar: bool, baz: bool}
2016-08-25 17:14:20 -05:00
2017-11-14 16:45:18 -06:00
#[repr(C)] //~ ERROR: E0517
impl Foo3 {
2016-08-25 17:14:20 -05:00
}
fn main() {
}