@@ -13,19 +13,15 @@ fn main() {
13
13
. input ( "multiple-dep-versions.rs" )
14
14
. extern_ ( "dependency" , rust_lib_name ( "dependency" ) )
15
15
. extern_ ( "dep_2_reexport" , rust_lib_name ( "dependency2" ) )
16
- . inspect ( |cmd| eprintln ! ( "{cmd:?}" ) )
17
- . run_fail ( ) ;
18
- let stderr = out. stderr_utf8 ( ) ;
19
- assert_contains (
20
- & stderr,
21
- "you have multiple different versions of crate `dependency` in your dependency graph" ,
22
- ) ;
23
- assert_contains (
24
- & stderr,
25
- "two types coming from two different versions of the same crate are different types even \
26
- if they look the same",
27
- ) ;
28
- assert_contains ( & stderr, "this type doesn't implement the required trait" ) ;
29
- assert_contains ( & stderr, "this type implements the required trait" ) ;
30
- assert_contains ( & stderr, "this is the required trait" ) ;
16
+ . run_fail ( )
17
+ . assert_stderr_contains (
18
+ "you have multiple different versions of crate `dependency` in your dependency graph" ,
19
+ )
20
+ . assert_stderr_contains (
21
+ "two types coming from two different versions of the same crate are different types \
22
+ even if they look the same",
23
+ )
24
+ . assert_stderr_contains ( "this type doesn't implement the required trait" )
25
+ . assert_stderr_contains ( "this type implements the required trait" )
26
+ . assert_stderr_contains ( "this is the required trait" ) ;
31
27
}
0 commit comments