diff options
| author | yukang <moorekang@gmail.com> | 2024-02-21 09:37:45 +0800 |
|---|---|---|
| committer | yukang <moorekang@gmail.com> | 2024-02-29 08:46:00 +0800 |
| commit | e2ce5d74a5f87f9fb6baadd191288025ed974296 (patch) | |
| tree | 0613c87e78ef5e9b6dcc2a771fd9dd92cd7afcac /tests/ui/inference | |
| parent | e6f48fa0bb2c66bb29661bc81d4df5fadad32515 (diff) | |
| download | rust-e2ce5d74a5f87f9fb6baadd191288025ed974296.tar.gz rust-e2ce5d74a5f87f9fb6baadd191288025ed974296.zip | |
renaming test cases
Diffstat (limited to 'tests/ui/inference')
| -rw-r--r-- | tests/ui/inference/stmts-as-exp-105431.rs (renamed from tests/ui/inference/issue-105431-stmts-as-exp.rs) | 0 | ||||
| -rw-r--r-- | tests/ui/inference/stmts-as-exp-105431.stderr (renamed from tests/ui/inference/issue-105431-stmts-as-exp.stderr) | 18 |
2 files changed, 9 insertions, 9 deletions
diff --git a/tests/ui/inference/issue-105431-stmts-as-exp.rs b/tests/ui/inference/stmts-as-exp-105431.rs index b5adb4a2b66..b5adb4a2b66 100644 --- a/tests/ui/inference/issue-105431-stmts-as-exp.rs +++ b/tests/ui/inference/stmts-as-exp-105431.rs diff --git a/tests/ui/inference/issue-105431-stmts-as-exp.stderr b/tests/ui/inference/stmts-as-exp-105431.stderr index 2878d602ec5..f3da04b39a3 100644 --- a/tests/ui/inference/issue-105431-stmts-as-exp.stderr +++ b/tests/ui/inference/stmts-as-exp-105431.stderr @@ -1,5 +1,5 @@ error[E0308]: mismatched types - --> $DIR/issue-105431-stmts-as-exp.rs:11:5 + --> $DIR/stmts-as-exp-105431.rs:11:5 | LL | fn test_if() -> i32 { | --- expected `i32` because of return type @@ -19,7 +19,7 @@ LL + 4 | error[E0308]: mismatched types - --> $DIR/issue-105431-stmts-as-exp.rs:15:13 + --> $DIR/stmts-as-exp-105431.rs:15:13 | LL | if true { | _____________^ @@ -30,7 +30,7 @@ LL | | } | |_____^ expected `i32`, found `()` error[E0308]: mismatched types - --> $DIR/issue-105431-stmts-as-exp.rs:19:10 + --> $DIR/stmts-as-exp-105431.rs:19:10 | LL | else { | __________^ @@ -40,7 +40,7 @@ LL | | } | |_____^ expected `i32`, found `()` error[E0308]: mismatched types - --> $DIR/issue-105431-stmts-as-exp.rs:30:5 + --> $DIR/stmts-as-exp-105431.rs:30:5 | LL | fn test_match() -> i32 { | --- expected `i32` because of return type @@ -60,7 +60,7 @@ LL + _ => { 2 } | error[E0308]: mismatched types - --> $DIR/issue-105431-stmts-as-exp.rs:36:14 + --> $DIR/stmts-as-exp-105431.rs:36:14 | LL | 1 => { 1; } | ^^^-^^ @@ -69,7 +69,7 @@ LL | 1 => { 1; } | expected `i32`, found `()` error[E0308]: mismatched types - --> $DIR/issue-105431-stmts-as-exp.rs:37:14 + --> $DIR/stmts-as-exp-105431.rs:37:14 | LL | _ => { 2; } | ^^^-^^ @@ -78,7 +78,7 @@ LL | _ => { 2; } | expected `i32`, found `()` error[E0308]: `match` arms have incompatible types - --> $DIR/issue-105431-stmts-as-exp.rs:45:16 + --> $DIR/stmts-as-exp-105431.rs:45:16 | LL | let res = match v { | _______________- @@ -93,7 +93,7 @@ LL | | }; | |_____- `match` arms have incompatible types error[E0308]: mismatched types - --> $DIR/issue-105431-stmts-as-exp.rs:59:5 + --> $DIR/stmts-as-exp-105431.rs:59:5 | LL | fn test_if_match_mixed() -> i32 { | --- expected `i32` because of return type @@ -113,7 +113,7 @@ LL + } | error[E0308]: mismatched types - --> $DIR/issue-105431-stmts-as-exp.rs:72:5 + --> $DIR/stmts-as-exp-105431.rs:72:5 | LL | fn test_if_match_mixed_failed() -> i32 { | --- expected `i32` because of return type |
