mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
4bb7bf64e0
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
35 lines
874 B
Plaintext
35 lines
874 B
Plaintext
error: `#[optimize]` attribute cannot be used on structs
|
|
--> $DIR/optimize.rs:8:1
|
|
|
|
|
LL | #[optimize(speed)]
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: `#[optimize]` can only be applied to functions
|
|
|
|
error: `#[optimize]` attribute cannot be used on expressions
|
|
--> $DIR/optimize.rs:12:5
|
|
|
|
|
LL | #[optimize(speed)]
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: `#[optimize]` can only be applied to functions
|
|
|
|
error: `#[optimize]` attribute cannot be used on modules
|
|
--> $DIR/optimize.rs:21:1
|
|
|
|
|
LL | #[optimize(speed)]
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: `#[optimize]` can only be applied to functions
|
|
|
|
error: `#[optimize]` attribute cannot be used on inherent impl blocks
|
|
--> $DIR/optimize.rs:24:1
|
|
|
|
|
LL | #[optimize(speed)]
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: `#[optimize]` can only be applied to functions
|
|
|
|
error: aborting due to 4 previous errors
|
|
|