1
Fork 0

Add test for linking non-existent static library

This commit is contained in:
AB1908 2019-01-17 03:40:36 +00:00
parent e5e9867f60
commit 1e3f475d64
2 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,6 @@
//~ ERROR kind="static-nobundle" is feature gated
// Test the behavior of rustc when non-existent library is statically linked
// compile-flags: -l static-nobundle=nonexistent
fn main() {}

View file

@ -0,0 +1,7 @@
error[E0658]: kind="static-nobundle" is feature gated (see issue #37403)
|
= help: add #![feature(static_nobundle)] to the crate attributes to enable
error: aborting due to previous error
For more information about this error, try `rustc --explain E0658`.