]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/issue-68060.rs
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / 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             //~| ERROR: feature named `` is not valid
7             //~| NOTE: `` is not valid for this target
8             #[track_caller]
9             //~^ ERROR: `#[track_caller]` on closures is currently unstable
10             //~| NOTE: see issue #87417
11             |_| (),
12             //~^ NOTE: not a function
13         )
14         .next();
15 }