Files
rust/tests/ui/feature-gates/feature-gate-optimize_attribute.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
476 B
Rust
Raw Normal View History

#![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() {}
2024-12-09 19:00:43 +00:00
#[optimize(none)] //~ ERROR the `#[optimize]` attribute is an experimental feature
fn none() {}
2019-01-19 00:37:52 +02:00
#[optimize(banana)]
//~^ ERROR the `#[optimize]` attribute is an experimental feature
//~| ERROR malformed `optimize` attribute input [E0539]
fn not_known() {}