15 #![feature(target_feature)]
16 #![warn(unused_attributes)]
18 #[target_feature = "+sse2"]
19 //~^ ERROR malformed `target_feature` attribute
20 #[target_feature(enable = "foo")]
21 //~^ ERROR not valid for this target
22 //~| NOTE `foo` is not valid for this target
23 #[target_feature(bar)]
24 //~^ ERROR malformed `target_feature` attribute
25 #[target_feature(disable = "baz")]
26 //~^ ERROR malformed `target_feature` attribute
29 #[target_feature(enable = "sse2")]
30 //~^ ERROR `#[target_feature(..)]` can only be applied to `unsafe` functions
31 //~| NOTE see issue #69098
33 //~^ NOTE not an `unsafe` function
35 #[target_feature(enable = "sse2")]
36 //~^ ERROR attribute should be applied to a function
38 //~^ NOTE not a function
40 #[target_feature(enable = "sse2")]
41 //~^ ERROR attribute should be applied to a function
43 //~^ NOTE not a function
45 #[target_feature(enable = "sse2")]
46 //~^ ERROR attribute should be applied to a function
48 //~^ NOTE not a function
50 #[target_feature(enable = "sse2")]
51 //~^ ERROR attribute should be applied to a function
53 //~^ NOTE not a function
55 #[target_feature(enable = "sse2")]
56 //~^ ERROR attribute should be applied to a function
58 //~^ NOTE not a function
63 #[target_feature(enable = "sse2")]
64 //~^ ERROR attribute should be applied to a function
66 //~^ NOTE not a function
69 //~^ ERROR: cannot use `#[inline(always)]`
70 #[target_feature(enable = "sse2")]
78 #[target_feature(enable = "sse2")]
79 //~^ ERROR `#[target_feature(..)]` can only be applied to `unsafe` functions
80 //~| NOTE see issue #69098
82 //~^ NOTE not an `unsafe` function
86 #[target_feature(enable = "sse2")]
87 //~^ ERROR attribute should be applied to a function
92 //~^^^^ NOTE not a function
94 #[target_feature(enable = "sse2")]
95 //~^ ERROR attribute should be applied to a function
97 //~^ NOTE not a function