1
Fork 0
rust/src/test/ui/macros/issue-68060.rs

13 lines
380 B
Rust
Raw Normal View History

2020-02-14 12:46:06 +09:00
fn main() {
(0..)
.map(
#[target_feature(enable = "")]
//~^ ERROR: the feature named `` is not valid for this target
//~| ERROR: `#[target_feature(..)]` can only be applied to `unsafe` functions
#[track_caller]
//~^ ERROR: `#[track_caller]` requires Rust ABI
|_| (),
)
.next();
}