@@ -1229,8 +1229,16 @@ Execute `DO NOT BLESS. These are meant to fail` to update `tests/actual_tests/ba
1229
1229
+ --> tests/actual_tests/bad_pattern.rs:1:5
1230
1230
|
1231
1231
-4 | add("42", 3);
1232
- +1 | use basic_fail::add;
1233
1232
- | --- ^^^^ expected `usize`, found `&str`
1233
+ - | |
1234
+ - | arguments to this function are incorrect
1235
+ - |
1236
+ -note: function defined here
1237
+ - --> $DIR/tests/integrations/basic-fail/src/lib.rs:LL:CC
1238
+ - |
1239
+ -1 | pub fn add(left: usize, right: usize) -> usize {
1240
+ - | ^^^
1241
+ +1 | use basic_fail::add;
1234
1242
+ | ^^^^^^^^^^ use of undeclared crate or module `basic_fail`
1235
1243
1236
1244
-error: aborting due to previous error
@@ -1350,8 +1358,14 @@ Execute `DO NOT BLESS. These are meant to fail` to update `tests/actual_tests/fo
1350
1358
+ --> tests/actual_tests/foomp.rs:1:5
1351
1359
|
1352
1360
-4 | add("42", 3);
1353
- +1 | use basic_fail::add;
1354
1361
- | --- ^^^^ expected `usize`, found `&str`
1362
+ - |
1363
+ -note: function defined here
1364
+ - --> $DIR/tests/integrations/basic/src/lib.rs:LL:CC
1365
+ - |
1366
+ -1 | pub fn add(left: usize, right: usize) -> usize {
1367
+ - | ^^^ some expected text that isn't in the actual message
1368
+ +1 | use basic_fail::add;
1355
1369
+ | ^^^^^^^^^^ use of undeclared crate or module `basic_fail`
1356
1370
1357
1371
-error: aborting doo to previous error
@@ -1400,8 +1414,16 @@ Execute `DO NOT BLESS. These are meant to fail` to update `tests/actual_tests/fo
1400
1414
+ --> tests/actual_tests/foomp2.rs:1:5
1401
1415
|
1402
1416
-4 | add("42", 3);
1403
- +1 | use basic_fail::add;
1404
1417
- | --- ^^^^ expected `usize`, found `&str`
1418
+ - | |
1419
+ - | arguments to this function are incorrect
1420
+ - |
1421
+ -note: function defined here
1422
+ - --> $DIR/tests/integrations/basic-fail/src/lib.rs:LL:CC
1423
+ - |
1424
+ -1 | pub fn add(left: usize, right: usize) -> usize {
1425
+ - | ^^^
1426
+ +1 | use basic_fail::add;
1405
1427
+ | ^^^^^^^^^^ use of undeclared crate or module `basic_fail`
1406
1428
1407
1429
-error: aborting due to previous error
@@ -1515,8 +1537,16 @@ Execute `DO NOT BLESS. These are meant to fail` to update `tests/actual_tests/ru
1515
1537
+ --> tests/actual_tests/rustc_ice.rs:5:5
1516
1538
|
1517
1539
-8 | add("42", 3);
1518
- +5 | use basic_fail::add;
1519
1540
- | --- ^^^^ expected `usize`, found `&str`
1541
+ - | |
1542
+ - | arguments to this function are incorrect
1543
+ - |
1544
+ -note: function defined here
1545
+ - --> $DIR/tests/integrations/basic-fail/src/lib.rs:LL:CC
1546
+ - |
1547
+ -1 | pub fn add(left: usize, right: usize) -> usize {
1548
+ - | ^^^
1549
+ +5 | use basic_fail::add;
1520
1550
+ | ^^^^^^^^^^ use of undeclared crate or module `basic_fail`
1521
1551
1522
1552
thread 'rustc' panicked
0 commit comments