rust/tests/ui/macros/issue-68060.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
590 B
Rust
Raw Normal View History

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
//~| ERROR: feature named `` is not valid
//~| NOTE: `` is not valid for this target
2020-02-13 21:46:06 -06:00
#[track_caller]
//~^ 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
|_| (),
//~^ NOTE: not a function
2020-02-13 21:46:06 -06:00
)
.next();
}