Skip to content

Commit

Permalink
Fix test not to depend on environment
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Jan 11, 2020
1 parent 54f8601 commit 48cad46
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/test/ui/macros/issue-68058.rs
@@ -1,15 +1,14 @@
// check-pass

macro_rules! def_target {
($target: expr) => {
#[target_feature(enable=$target)]
unsafe fn f() {
#[target_feature(enable=$target)]
macro_rules! foo {
($doc: expr) => {
fn f() {
#[doc = $doc]
()
}
};
}

def_target!("avx2");
foo!("doc");

fn main() {}

0 comments on commit 48cad46

Please sign in to comment.