rust/tests/ui/feature-gates/feature-gate-optimize_attribute.rs

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

19 lines
525 B
Rust
Raw Normal View History

#![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() {}
2019-01-18 16:37:52 -06:00
#[optimize(banana)]
//~^ ERROR the `#[optimize]` attribute is an experimental feature
2019-01-18 16:37:52 -06:00
//~| ERROR E0722
fn not_known() {}
}