File tree Expand file tree Collapse file tree 1 file changed +2
-20
lines changed Expand file tree Collapse file tree 1 file changed +2
-20
lines changed Original file line number Diff line number Diff line change @@ -345,18 +345,9 @@ pub fn foo(num: i32) -> u32 {
345345 foo. cargo ( "check" )
346346 . masquerade_as_nightly_cargo ( & [ "lints" ] )
347347 . with_status ( 101 )
348- . with_stderr (
348+ . with_stderr_contains (
349349 "\
350- [..]
351350 error: usage of an `unsafe` block
352- [..]
353- [..]
354- [..]
355- [..]
356- [..]
357- [..]
358- [..]
359- error: could not compile `foo` (lib) due to previous error
360351" ,
361352 )
362353 . run ( ) ;
@@ -395,18 +386,9 @@ pub fn foo(num: i32) -> u32 {
395386 foo. cargo ( "check" )
396387 . masquerade_as_nightly_cargo ( & [ "lints" ] )
397388 . with_status ( 101 )
398- . with_stderr (
389+ . with_stderr_contains (
399390 "\
400- [..]
401391 error: usage of an `unsafe` block
402- [..]
403- [..]
404- [..]
405- [..]
406- [..]
407- [..]
408- [..]
409- error: could not compile `foo` (lib) due to previous error
410392" ,
411393 )
412394 . run ( ) ;
You can’t perform that action at this time.
0 commit comments