2020-02-14 03:46:06 +00:00
|
|
|
fn main() {
|
|
|
|
(0..)
|
|
|
|
.map(
|
|
|
|
#[target_feature(enable = "")]
|
2020-06-14 04:47:42 +00:00
|
|
|
//~^ ERROR: attribute should be applied to a function
|
2022-11-06 16:28:07 +00:00
|
|
|
//~| ERROR: feature named `` is not valid
|
|
|
|
//~| NOTE: `` is not valid for this target
|
2020-02-14 03:46:06 +00:00
|
|
|
#[track_caller]
|
2022-11-06 16:28:07 +00:00
|
|
|
//~^ ERROR: `#[track_caller]` on closures is currently unstable
|
|
|
|
//~| NOTE: see issue #87417
|
2020-02-14 03:46:06 +00:00
|
|
|
|_| (),
|
2020-07-11 14:29:35 +00:00
|
|
|
//~^ NOTE: not a function
|
2020-02-14 03:46:06 +00:00
|
|
|
)
|
|
|
|
.next();
|
|
|
|
}
|