Skip to content

Commit 1e3f475

Browse files
author
AB1908
committed
Add test for linking non-existent static library
1 parent e5e9867 commit 1e3f475

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
//~ ERROR kind="static-nobundle" is feature gated
2+
// Test the behavior of rustc when non-existent library is statically linked
3+
4+
// compile-flags: -l static-nobundle=nonexistent
5+
6+
fn main() {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
error[E0658]: kind="static-nobundle" is feature gated (see issue #37403)
2+
|
3+
= help: add #![feature(static_nobundle)] to the crate attributes to enable
4+
5+
error: aborting due to previous error
6+
7+
For more information about this error, try `rustc --explain E0658`.

0 commit comments

Comments
 (0)