2018-11-25 11:56:10 -06:00
|
|
|
#![crate_type="rlib"]
|
2019-08-22 18:09:51 -05:00
|
|
|
#![optimize(speed)] //~ ERROR the `#[optimize]` attribute is an experimental feature
|
2018-11-25 11:56:10 -06:00
|
|
|
|
2019-08-22 18:09:51 -05:00
|
|
|
#[optimize(size)] //~ ERROR the `#[optimize]` attribute is an experimental feature
|
2018-11-25 11:56:10 -06:00
|
|
|
mod module {
|
|
|
|
|
2019-08-22 18:09:51 -05:00
|
|
|
#[optimize(size)] //~ ERROR the `#[optimize]` attribute is an experimental feature
|
2018-11-25 11:56:10 -06:00
|
|
|
fn size() {}
|
|
|
|
|
2019-08-22 18:09:51 -05:00
|
|
|
#[optimize(speed)] //~ ERROR the `#[optimize]` attribute is an experimental feature
|
2018-11-25 11:56:10 -06:00
|
|
|
fn speed() {}
|
|
|
|
|
2019-01-18 16:37:52 -06:00
|
|
|
#[optimize(banana)]
|
2019-08-22 18:09:51 -05:00
|
|
|
//~^ ERROR the `#[optimize]` attribute is an experimental feature
|
2019-01-18 16:37:52 -06:00
|
|
|
//~| ERROR E0722
|
2018-11-25 11:56:10 -06:00
|
|
|
fn not_known() {}
|
|
|
|
|
|
|
|
}
|