rust/src/test/ui/target-feature-wrong.stderr

48 lines
1.4 KiB
Plaintext
Raw Normal View History

warning: #[target_feature = ".."] is deprecated and will eventually be removed, use #[target_feature(enable = "..")] instead
2018-04-05 08:30:41 -05:00
--> $DIR/target-feature-wrong.rs:19:1
|
2018-02-22 18:42:32 -06:00
LL | #[target_feature = "+sse2"]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: the feature named `foo` is not valid for this target
2018-04-05 08:30:41 -05:00
--> $DIR/target-feature-wrong.rs:21:18
|
2018-02-22 18:42:32 -06:00
LL | #[target_feature(enable = "foo")]
| ^^^^^^^^^^^^^^
error: #[target_feature(..)] only accepts sub-keys of `enable` currently
2018-04-05 08:30:41 -05:00
--> $DIR/target-feature-wrong.rs:23:18
|
2018-02-22 18:42:32 -06:00
LL | #[target_feature(bar)]
| ^^^
error: #[target_feature(..)] only accepts sub-keys of `enable` currently
2018-04-05 08:30:41 -05:00
--> $DIR/target-feature-wrong.rs:25:18
|
2018-02-22 18:42:32 -06:00
LL | #[target_feature(disable = "baz")]
| ^^^^^^^^^^^^^^^
error: #[target_feature(..)] can only be applied to `unsafe` function
2018-04-05 08:30:41 -05:00
--> $DIR/target-feature-wrong.rs:29:1
|
2018-02-22 18:42:32 -06:00
LL | #[target_feature(enable = "sse2")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: attribute should be applied to a function
2018-04-05 08:30:41 -05:00
--> $DIR/target-feature-wrong.rs:33:1
|
LL | #[target_feature(enable = "sse2")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
LL | //~^ ERROR: should be applied to a function
LL | mod another {}
| -------------- not a function
error: cannot use #[inline(always)] with #[target_feature]
--> $DIR/target-feature-wrong.rs:36:1
|
LL | #[inline(always)]
| ^^^^^^^^^^^^^^^^^
error: aborting due to 6 previous errors