]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/target-feature-wrong.rs
14 #![feature(target_feature)]
16 #[target_feature = "+sse2"]
17 //~^ ERROR malformed `target_feature` attribute
18 #[target_feature(enable = "foo")]
19 //~^ ERROR not valid for this target
20 //~| NOTE `foo` is not valid for this target
21 #[target_feature(bar)]
22 //~^ ERROR malformed `target_feature` attribute
23 #[target_feature(disable = "baz")]
24 //~^ ERROR malformed `target_feature` attribute
27 #[target_feature(enable = "sse2")]
28 //~^ ERROR `#[target_feature(..)]` can only be applied to `unsafe` functions
29 //~| NOTE can only be applied to `unsafe` functions
31 //~^ NOTE not an `unsafe` function
33 #[target_feature(enable = "sse2")]
34 //~^ ERROR attribute should be applied to a function
36 //~^ NOTE not a function
39 //~^ ERROR: cannot use `#[inline(always)]`
40 #[target_feature(enable = "sse2")]