Error code E0722

The optimize attribute was malformed.

Erroneous code example:

#![feature(optimize_attribute)]

#[optimize(something)] // error: invalid argument
pub fn something() {}
Run

The #[optimize] attribute should be used as follows:

For example:

#![feature(optimize_attribute)]

#[optimize(size)]
pub fn something() {}
Run

See RFC 2412 for more details.

Back to list of error codes