File tree 1 file changed +2
-20
lines changed
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 {
345
345
foo. cargo ( "check" )
346
346
. masquerade_as_nightly_cargo ( & [ "lints" ] )
347
347
. with_status ( 101 )
348
- . with_stderr (
348
+ . with_stderr_contains (
349
349
"\
350
- [..]
351
350
error: usage of an `unsafe` block
352
- [..]
353
- [..]
354
- [..]
355
- [..]
356
- [..]
357
- [..]
358
- [..]
359
- error: could not compile `foo` (lib) due to previous error
360
351
" ,
361
352
)
362
353
. run ( ) ;
@@ -395,18 +386,9 @@ pub fn foo(num: i32) -> u32 {
395
386
foo. cargo ( "check" )
396
387
. masquerade_as_nightly_cargo ( & [ "lints" ] )
397
388
. with_status ( 101 )
398
- . with_stderr (
389
+ . with_stderr_contains (
399
390
"\
400
- [..]
401
391
error: usage of an `unsafe` block
402
- [..]
403
- [..]
404
- [..]
405
- [..]
406
- [..]
407
- [..]
408
- [..]
409
- error: could not compile `foo` (lib) due to previous error
410
392
" ,
411
393
)
412
394
. run ( ) ;
You can’t perform that action at this time.
0 commit comments