-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for linking non-existent static library
- Loading branch information
AB1908
committed
Jan 17, 2019
1 parent
e5e9867
commit 1e3f475
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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() {} |
7 changes: 7 additions & 0 deletions
7
src/test/ui/feature-gate/feature-gate-static-nobundle-2.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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`. |