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