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

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

16 lines
485 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
2020-02-13 21:46:06 -06:00
|_| (),
//~^ NOTE: not a function
2020-02-13 21:46:06 -06:00
)
.next();
}