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

17 lines
437 B
Rust
Raw Normal View History

#![crate_type = "lib"]
// ignore-tidy-linelength
// FIXME(#82232, #143834): temporarily renamed to mitigate `#[align]` nameres ambiguity
#[rustc_align(16)]
//~^ ERROR the `#[rustc_align]` attribute is an experimental feature
fn requires_alignment() {}
2024-12-05 17:59:05 +01:00
trait MyTrait {
#[rustc_align]
//~^ ERROR the `#[rustc_align]` attribute is an experimental feature
//~| ERROR malformed `rustc_align` attribute input
2024-12-05 17:59:05 +01:00
fn myfun();
}