rust/src/test/ui/feature-gate-optimize_attribute.rs
Simonas Kazlauskas ce289c6c99 Resolve breakage
2019-01-25 19:20:38 +02:00

19 lines
285 B
Rust

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