summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/issue-68060.rs
blob: fb40cd5387b7cc74dcb5add70314e0ed67689613 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
fn main() {
    (0..)
        .map(
            #[target_feature(enable = "")]
            //~^ ERROR: attribute should be applied to a function
            //~| ERROR: feature named `` is not valid
            //~| NOTE: `` is not valid for this target
            #[track_caller]
            //~^ ERROR: `#[track_caller]` on closures is currently unstable
            //~| NOTE: see issue #87417
            |_| (),
            //~^ NOTE: not a function
        )
        .next();
}