File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed
tests/run-make/error-found-staticlib-instead-crate Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ run-make/emit-shared-files/Makefile
3838run-make/emit-stack-sizes/Makefile
3939run-make/emit-to-stdout/Makefile
4040run-make/env-dep-info/Makefile
41- run-make/error-found-staticlib-instead-crate/Makefile
4241run-make/error-writing-dependencies/Makefile
4342run-make/export-executable-symbols/Makefile
4443run-make/extern-diff-internal-name/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ // When rustc is looking for a crate but is given a staticlib instead,
2+ // the error message should be helpful and indicate precisely the cause
3+ // of the compilation failure.
4+ // See https://github.com/rust-lang/rust/pull/21978
5+
6+ use run_make_support:: rustc;
7+
8+ fn main ( ) {
9+ rustc ( ) . input ( "foo.rs" ) . crate_type ( "staticlib" ) . run ( ) ;
10+ rustc ( ) . input ( "bar.rs" ) . run_fail ( ) . assert_stderr_contains ( "found staticlib" ) ;
11+ }
You can’t perform that action at this time.
0 commit comments