Skip to content

Commit 4aa3ac8

Browse files
committed
Improve error message with --no-default-features
By naming the function main, only the `compile_check` error occurs (and not a second '`main` function not found' error).
1 parent 39ec4e1 commit 4aa3ac8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
fn main() {}
33

44
#[cfg(all(not(feature = "inline_asm"), not(feature = "stable")))]
5-
fn check_inline_asm() {
5+
fn main() {
66
compile_error!("Neither feature \"stable\" nor \"inline_asm\" was set!");
77
}
88

0 commit comments

Comments
 (0)