]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/issue-68060.rs
Rollup merge of #95376 - WaffleLapkin:drain_keep_rest, r=dtolnay
[rust.git] / src / test / ui / macros / issue-68060.rs
1 fn main() {
2     (0..)
3         .map(
4             #[target_feature(enable = "")]
5             //~^ ERROR: attribute should be applied to a function
6             #[track_caller]
7             |_| (),
8             //~^ NOTE: not a function
9         )
10         .next();
11 }