summaryrefslogtreecommitdiffstats
path: root/tests/ui/feature-gates/feature-gate-optimize_attribute.rs
blob: 15aa3a6af4ca9c2bf3fe48e0c9c437a4982d6486 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#![crate_type="rlib"]
#![optimize(speed)] //~ ERROR the `#[optimize]` attribute is an experimental feature

#[optimize(size)] //~ ERROR the `#[optimize]` attribute is an experimental feature
mod module {

#[optimize(size)] //~ ERROR the `#[optimize]` attribute is an experimental feature
fn size() {}

#[optimize(speed)] //~ ERROR the `#[optimize]` attribute is an experimental feature
fn speed() {}

#[optimize(banana)]
//~^ ERROR the `#[optimize]` attribute is an experimental feature
//~| ERROR E0722
fn not_known() {}

}