about summary refs log tree commit diff
path: root/tests/ui/imports/resolve-other-libc.rs
blob: e23083276ce2b16e0088c26365b47545f9812d2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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() {}