2020-02-13 21:46:06 -06:00
|
|
|
fn main() {
|
|
|
|
(0..)
|
|
|
|
.map(
|
|
|
|
#[target_feature(enable = "")]
|
2020-06-13 23:47:42 -05:00
|
|
|
//~^ ERROR: attribute should be applied to a function
|
2022-11-06 10:28:07 -06:00
|
|
|
//~| ERROR: feature named `` is not valid
|
|
|
|
//~| NOTE: `` is not valid for this target
|
2020-02-13 21:46:06 -06:00
|
|
|
#[track_caller]
|
2022-11-06 10:28:07 -06:00
|
|
|
//~^ ERROR: `#[track_caller]` on closures is currently unstable
|
|
|
|
//~| NOTE: see issue #87417
|
2024-01-10 00:39:02 -06:00
|
|
|
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
2020-02-13 21:46:06 -06:00
|
|
|
|_| (),
|
2020-07-11 09:29:35 -05:00
|
|
|
//~^ NOTE: not a function
|
2020-02-13 21:46:06 -06:00
|
|
|
)
|
|
|
|
.next();
|
|
|
|
}
|