mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
19 lines
525 B
Rust
19 lines
525 B
Rust
#![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() {}
|
|
|
|
#[optimize(banana)]
|
|
//~^ ERROR the `#[optimize]` attribute is an experimental feature
|
|
//~| ERROR E0722
|
|
fn not_known() {}
|
|
|
|
}
|