rust/tests/ui/repr/invalid_repr_list_help.rs

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

23 lines
529 B
Rust
Raw Normal View History

#![crate_type = "lib"]
#[repr(uwu)] //~ERROR: unrecognized representation hint
pub struct OwO;
#[repr(uwu = "a")] //~ERROR: unrecognized representation hint
pub struct OwO2(i32);
#[repr(uwu(4))] //~ERROR: unrecognized representation hint
pub struct OwO3 {
x: i32,
}
#[repr(uwu, u8)] //~ERROR: unrecognized representation hint
pub enum OwO4 {
UwU = 1,
}
#[repr(uwu)] //~ERROR: unrecognized representation hint
#[doc(owo)] //~WARN: unknown `doc` attribute
//~^ WARN: this was previously
pub struct Owo5;