File tree Expand file tree Collapse file tree 2 files changed +24
-8
lines changed
tests/integrations/basic-fail Expand file tree Collapse file tree 2 files changed +24
-8
lines changed Original file line number Diff line number Diff line change @@ -358,18 +358,26 @@ error: `mismatched types` not found in diagnostics on line 8
358
358
|
359
359
360
360
error: there were 1 unmatched diagnostics
361
- --> tests/actual_tests/rustc_ice.rs:8:5
361
+ --> tests/actual_tests/rustc_ice.rs:8:9
362
362
|
363
363
8 | add("42", 3);
364
- | ^^^^^^^^^^^^ Ice: no errors reported for args
364
+ | ^^^^ Ice: mismatched types
365
365
|
366
366
367
367
full stderr:
368
- error: internal compiler error: no errors reported for args
369
- --> tests/actual_tests/rustc_ice.rs:8:5
368
+ error: internal compiler error[E0308]: mismatched types
369
+ --> tests/actual_tests/rustc_ice.rs:8:9
370
370
|
371
371
8 | add("42", 3);
372
- | ^^^^^^^^^^^^
372
+ | --- ^^^^ expected `usize`, found `&str`
373
+ | |
374
+ | arguments to this function are incorrect
375
+ |
376
+ note: function defined here
377
+ --> $DIR/tests/integrations/basic-fail/src/lib.rs:LL:CC
378
+ |
379
+ 1 | pub fn add(left: usize, right: usize) -> usize {
380
+ | ^^^
373
381
374
382
thread 'rustc' panicked at compiler/rustc_errors/src/lib.rs:
375
383
aborting due to `-Z treat-err-as-bug=1`
Original file line number Diff line number Diff line change 1
- error: internal compiler error: no errors reported for args
2
- --> tests/actual_tests/rustc_ice.rs:8:5
1
+ error: internal compiler error[E0308]: mismatched types
2
+ --> tests/actual_tests/rustc_ice.rs:8:9
3
3
|
4
4
8 | add("42", 3);
5
- | ^^^^^^^^^^^^
5
+ | --- ^^^^ expected `usize`, found `&str`
6
+ | |
7
+ | arguments to this function are incorrect
8
+ |
9
+ note: function defined here
10
+ --> $DIR/tests/integrations/basic-fail/src/lib.rs:1:8
11
+ |
12
+ 1 | pub fn add(left: usize, right: usize) -> usize {
13
+ | ^^^
6
14
7
15
thread 'rustc' panicked
You can’t perform that action at this time.
0 commit comments