summary refs log tree commit diff
path: root/tests/ui/feature-gates/feature-gate-fn_align.rs
blob: 36e17c4a8dd1511a3355a154482874ba241c07e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![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() {}

trait MyTrait {
    #[rustc_align]
    //~^ ERROR the `#[rustc_align]` attribute is an experimental feature
    //~| ERROR malformed `rustc_align` attribute input
    fn myfun();
}