blob: d35b43b86c1bb92a0b165dabf9591c408eaf2c72 [file]
error: the `optimize` attribute cannot be used on structs
--> $DIR/optimize.rs:7:3
|
LL | #[optimize(speed)]
| ^^^^^^^^
LL | struct F;
|
= help: the `optimize` attribute can only be applied to functions
error: the `optimize` attribute cannot be used on expressions
--> $DIR/optimize.rs:11:7
|
LL | #[optimize(speed)]
| ^^^^^^^^
LL | {
|
= help: the `optimize` attribute can only be applied to functions
error: the `optimize` attribute cannot be used on modules
--> $DIR/optimize.rs:20:3
|
LL | #[optimize(speed)]
| ^^^^^^^^
LL | mod valid_module {}
|
= help: the `optimize` attribute can only be applied to functions
error: the `optimize` attribute cannot be used on inherent impl blocks
--> $DIR/optimize.rs:23:3
|
LL | #[optimize(speed)]
| ^^^^^^^^
LL | impl F {}
|
= help: the `optimize` attribute can only be applied to functions
error: the `optimize` attribute cannot be used on required trait methods
--> $DIR/optimize.rs:44:7
|
LL | #[optimize(speed)]
| ^^^^^^^^
LL | fn invalid();
|
= help: the `optimize` attribute can only be applied to functions with a body
error: multiple `optimize` attributes
--> $DIR/optimize.rs:58:1
|
LL | #[optimize(speed)]
| ^^^^^^^^^^^^^^^^^^ help: remove this attribute
|
note: attribute also specified here
--> $DIR/optimize.rs:57:1
|
LL | #[optimize(speed)]
| ^^^^^^^^^^^^^^^^^^
error: multiple `optimize` attributes
--> $DIR/optimize.rs:62:1
|
LL | #[optimize(size)]
| ^^^^^^^^^^^^^^^^^ help: remove this attribute
|
note: attribute also specified here
--> $DIR/optimize.rs:61:1
|
LL | #[optimize(speed)]
| ^^^^^^^^^^^^^^^^^^
error: `#[optimize(none)]` cannot be used with `#[inline]` attributes
--> $DIR/optimize.rs:65:1
|
LL | #[optimize(none)]
| ^^^^^^^^^^^^^^^^^ `#[optimize(none)]` here
LL | #[inline]
| --------- `#[inline]` here
error: `#[optimize(none)]` cannot be used with `#[inline]` attributes
--> $DIR/optimize.rs:70:1
|
LL | #[inline(always)]
| ----------------- `#[inline]` here
LL | #[optimize(none)]
| ^^^^^^^^^^^^^^^^^ `#[optimize(none)]` here
error: aborting due to 9 previous errors