File tree 2 files changed +22
-0
lines changed
2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change
1
+ // Regression test for https://github.com/rust-lang/rust/issues/26043
2
+
3
+ // compile-flags: --extern libc=test.rlib
4
+
5
+ // The error shall NOT be something similar to the following, because it
6
+ // indicates that `libc` was wrongly resolved to `libc` shipped with the
7
+ // compiler:
8
+ //
9
+ // error[E0658]: use of unstable library feature 'rustc_private': \
10
+ // this crate is being loaded from the sysroot
11
+ //
12
+ extern crate libc; //~ ERROR: extern location for libc does not exist: test.rlib
13
+
14
+ fn main ( ) { }
Original file line number Diff line number Diff line change
1
+ error: extern location for libc does not exist: test.rlib
2
+ --> $DIR/resolve-other-libc.rs:12:1
3
+ |
4
+ LL | extern crate libc;
5
+ | ^^^^^^^^^^^^^^^^^^
6
+
7
+ error: aborting due to previous error
8
+
You can’t perform that action at this time.
0 commit comments