Future proof #[no_link].

This commit is contained in:
Jeffrey Seyfried 2016-10-18 05:33:50 +00:00
parent 0c429872a3
commit b283aaf0ff
5 changed files with 13 additions and 7 deletions

View file

@ -14,6 +14,5 @@
extern crate macro_crate_test;
fn main() {
macro_crate_test::foo();
//~^ ERROR failed to resolve. Use of undeclared type or module `macro_crate_test`
macro_crate_test::foo(); //~ ERROR unresolved name
}

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[macro_use] #[no_link]
#[no_link]
extern crate doesnt_exist; //~ ERROR can't find crate
fn main() {}

View file

@ -13,6 +13,6 @@ extern crate libc;
fn main() {
unsafe {
libc::abs(0); //~ ERROR Use of undeclared type or module `libc`
libc::abs(0); //~ ERROR unresolved name
}
}