Skip to content

Commit 1f36334

Browse files
committed
Rename test file to please tidy
1 parent 7e719c9 commit 1f36334

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/ui/mismatched_types/issue-127545-option-of-ref.stderr renamed to tests/ui/mismatched_types/transforming-option-ref-issue-127545.stderr

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0308]: mismatched types
2-
--> $DIR/issue-127545-option-of-ref.rs:5:5
2+
--> $DIR/transforming-option-ref-issue-127545.rs:5:5
33
|
44
LL | pub fn foo(arg: Option<&Vec<i32>>) -> Option<&[i32]> {
55
| -------------- expected `Option<&[i32]>` because of return type
@@ -14,7 +14,7 @@ LL | arg.map(|v| &**v)
1414
| ++++++++++++++
1515

1616
error[E0308]: mismatched types
17-
--> $DIR/issue-127545-option-of-ref.rs:9:19
17+
--> $DIR/transforming-option-ref-issue-127545.rs:9:19
1818
|
1919
LL | arg.unwrap_or(&[])
2020
| --------- ^^^ expected `&Vec<i32>`, found `&[_; 0]`
@@ -24,7 +24,7 @@ LL | arg.unwrap_or(&[])
2424
= note: expected reference `&Vec<i32>`
2525
found reference `&[_; 0]`
2626
help: the return type of this call is `&[_; 0]` due to the type of the argument passed
27-
--> $DIR/issue-127545-option-of-ref.rs:9:5
27+
--> $DIR/transforming-option-ref-issue-127545.rs:9:5
2828
|
2929
LL | arg.unwrap_or(&[])
3030
| ^^^^^^^^^^^^^^---^
@@ -38,7 +38,7 @@ LL | arg.map_or(&[], |v| v)
3838
| ~~~~~~~~~~~~~~~~~~
3939

4040
error[E0308]: mismatched types
41-
--> $DIR/issue-127545-option-of-ref.rs:13:19
41+
--> $DIR/transforming-option-ref-issue-127545.rs:13:19
4242
|
4343
LL | arg.unwrap_or(v)
4444
| --------- ^ expected `&Vec<i32>`, found `&[i32]`
@@ -48,7 +48,7 @@ LL | arg.unwrap_or(v)
4848
= note: expected reference `&Vec<i32>`
4949
found reference `&'a [i32]`
5050
help: the return type of this call is `&'a [i32]` due to the type of the argument passed
51-
--> $DIR/issue-127545-option-of-ref.rs:13:5
51+
--> $DIR/transforming-option-ref-issue-127545.rs:13:5
5252
|
5353
LL | arg.unwrap_or(v)
5454
| ^^^^^^^^^^^^^^-^

0 commit comments

Comments
 (0)