Future proof #[no_link].
This commit is contained in:
parent
0c429872a3
commit
b283aaf0ff
5 changed files with 13 additions and 7 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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() {}
|
||||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue