Skip to content

Commit 3844996

Browse files
committed
auto merge of #12994 : alexcrichton/rust/fix-android, r=huonw
This compile-fail test didn't have a main function for architectures other than x86
2 parents af93684 + 417e54e commit 3844996

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/test/compile-fail/asm-misplaced-option.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ pub fn main() {
3333
assert_eq!(x, 13);
3434
}
3535

36-
// #[cfg(not(target_arch = "x86"), not(target_arch = "x86_64"))]
37-
// pub fn main() {}
36+
#[cfg(not(target_arch = "x86"),
37+
not(target_arch = "x86_64"))]
38+
pub fn main() {}
3839

3940
// At least one error is needed so that compilation fails
4041
#[static_assert]

0 commit comments

Comments
 (0)