rust/src/test/ui/feature-gate-optimize_attribute.rs
2019-04-10 18:10:30 -07:00

19 lines
475 B
Rust

#![crate_type="rlib"]
#![optimize(speed)] //~ ERROR #[optimize] attribute is an unstable feature
#[optimize(size)] //~ ERROR #[optimize] attribute is an unstable feature
mod module {
#[optimize(size)] //~ ERROR #[optimize] attribute is an unstable feature
fn size() {}
#[optimize(speed)] //~ ERROR #[optimize] attribute is an unstable feature
fn speed() {}
#[optimize(banana)]
//~^ ERROR #[optimize] attribute is an unstable feature
//~| ERROR E0722
fn not_known() {}
}