2021-01-20 21:49:04 -05:00
|
|
|
#![crate_type = "lib"]
|
|
|
|
|
|
2025-07-18 00:10:46 +08:00
|
|
|
// 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
|
2021-01-20 21:49:04 -05:00
|
|
|
fn requires_alignment() {}
|
2024-12-05 17:59:05 +01:00
|
|
|
|
|
|
|
|
trait MyTrait {
|
2025-07-18 00:10:46 +08:00
|
|
|
#[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();
|
|
|
|
|
}
|