Files
rust/tests/ui/feature-gates/feature-gate-fn_align.rs

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

10 lines
254 B
Rust
Raw Normal View History

#![crate_type = "lib"]
#[repr(align(16))] //~ ERROR `repr(align)` attributes on functions are unstable
fn requires_alignment() {}
2024-12-05 17:59:05 +01:00
trait MyTrait {
#[repr(align)] //~ ERROR invalid `repr(align)` attribute: `align` needs an argument
2024-12-05 17:59:05 +01:00
fn myfun();
}