mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
7dd5e3c1cd
I could not find a test for this particular use case. The closest I got was `tests/ui/imports/issue-37887.rs`, but that is a regression test for a different use case.
15 lines
501 B
Rust
15 lines
501 B
Rust
// Regression test for https://github.com/rust-lang/rust/issues/26043
|
|
|
|
// compile-flags: --extern libc=test.rlib
|
|
|
|
// The error shall NOT be something similar to the following, because it
|
|
// indicates that `libc` was wrongly resolved to `libc` shipped with the
|
|
// compiler:
|
|
//
|
|
// error[E0658]: use of unstable library feature 'rustc_private': \
|
|
// this crate is being loaded from the sysroot
|
|
//
|
|
extern crate libc; //~ ERROR: extern location for libc does not exist: test.rlib
|
|
|
|
fn main() {}
|