File tree 5 files changed +13
-9
lines changed
lib-trait-for-trait-no-ice
5 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,6 @@ run-make/issue-10971-temps-dir/Makefile
81
81
run-make/issue-109934-lto-debuginfo/Makefile
82
82
run-make/issue-14698/Makefile
83
83
run-make/issue-15460/Makefile
84
- run-make/issue-18943/Makefile
85
84
run-make/issue-20626/Makefile
86
85
run-make/issue-22131/Makefile
87
86
run-make/issue-25581/Makefile
Load Diff This file was deleted.
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ // Inside a library, implementing a trait for another trait
2
+ // with a lifetime used to cause an internal compiler error (ICE).
3
+ // This test checks that this bug does not make a resurgence -
4
+ // first by ensuring successful compilation, then verifying that
5
+ // the lib crate-type flag was actually followed.
6
+ // See https://github.com/rust-lang/rust/issues/18943
7
+
8
+ use run_make_support:: { count_rlibs, rustc} ;
9
+
10
+ fn main ( ) {
11
+ rustc ( ) . input ( "foo.rs" ) . crate_type ( "lib" ) . run ( ) ;
12
+ assert_eq ! ( count_rlibs( "foo" ) , 1 ) ;
13
+ }
Original file line number Diff line number Diff line change @@ -25,4 +25,3 @@ fn main() {
25
25
rustc_foo. run ( ) ;
26
26
rustc_foo_panic. run ( ) ;
27
27
}
28
-
You can’t perform that action at this time.
0 commit comments