rust/src/test/ui/macros/issue-68060.rs

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

12 lines
260 B
Rust
Raw Normal View History

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
2020-02-14 03:46:06 +00:00
#[track_caller]
|_| (),
//~^ NOTE: not a function
2020-02-14 03:46:06 +00:00
)
.next();
}