2020-02-14 12:46:06 +09:00
|
|
|
fn main() {
|
|
|
|
(0..)
|
|
|
|
.map(
|
|
|
|
#[target_feature(enable = "")]
|
2020-06-14 00:47:42 -04: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 12:46:06 +09:00
|
|
|
#[track_caller]
|
2022-11-06 16:28:07 +00:00
|
|
|
//~^ ERROR: `#[track_caller]` on closures is currently unstable
|
|
|
|
//~| NOTE: see issue #87417
|
2024-01-10 01:39:02 -05:00
|
|
|
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
2020-02-14 12:46:06 +09:00
|
|
|
|_| (),
|
2020-07-11 10:29:35 -04:00
|
|
|
//~^ NOTE: not a function
|
2020-02-14 12:46:06 +09:00
|
|
|
)
|
|
|
|
.next();
|
|
|
|
}
|