mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
37 lines
792 B
Plaintext
37 lines
792 B
Plaintext
error: attribute applied to an invalid target
|
|
--> $DIR/optimize.rs:8:1
|
|
|
|
|
LL | #[optimize(speed)]
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
LL | struct F;
|
|
| --------- invalid target
|
|
|
|
error: attribute applied to an invalid target
|
|
--> $DIR/optimize.rs:12:5
|
|
|
|
|
LL | #[optimize(speed)]
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
LL | / {
|
|
LL | | 1
|
|
LL | | };
|
|
| |_____- invalid target
|
|
|
|
error: attribute applied to an invalid target
|
|
--> $DIR/optimize.rs:21:1
|
|
|
|
|
LL | #[optimize(speed)]
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
LL | mod valid_module {}
|
|
| ------------------- invalid target
|
|
|
|
error: attribute applied to an invalid target
|
|
--> $DIR/optimize.rs:24:1
|
|
|
|
|
LL | #[optimize(speed)]
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
LL | impl F {}
|
|
| --------- invalid target
|
|
|
|
error: aborting due to 4 previous errors
|
|
|