mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-30 16:26:10 +00:00
16 lines
476 B
Rust
16 lines
476 B
Rust
#![crate_type="rlib"]
|
|
|
|
#[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(none)] //~ ERROR the `#[optimize]` attribute is an experimental feature
|
|
fn none() {}
|
|
|
|
#[optimize(banana)]
|
|
//~^ ERROR the `#[optimize]` attribute is an experimental feature
|
|
//~| ERROR malformed `optimize` attribute input [E0539]
|
|
fn not_known() {}
|