Skip to content

Commit db46df9

Browse files
CoAlloc: tests
1 parent 45a565c commit db46df9

File tree

4 files changed

+10
-26
lines changed

4 files changed

+10
-26
lines changed

tests/ui/const-generics/occurs-check/unused-substs-3.stderr

+3-8
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,9 @@ error[E0308]: mismatched types
22
--> $DIR/unused-substs-3.rs:16:9
33
|
44
LL | t = foo;
5-
| ^^^ cyclic type of infinite size
6-
|
7-
help: try using a conversion method
8-
|
9-
LL | t = foo.to_vec();
10-
| +++++++++
11-
LL | t = foo.to_vec_co();
12-
| ++++++++++++
5+
| ^^^- help: try using a conversion method: `.to_vec()`
6+
| |
7+
| cyclic type of infinite size
138

149
error: aborting due to previous error
1510

tests/ui/const-generics/occurs-check/unused-substs-5.stderr

+3-8
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,9 @@ error[E0308]: mismatched types
22
--> $DIR/unused-substs-5.rs:15:9
33
|
44
LL | x = q::<_, N>(x);
5-
| ^^^^^^^^^^^^ cyclic type of infinite size
6-
|
7-
help: try using a conversion method
8-
|
9-
LL | x = q::<_, N>(x).to_vec();
10-
| +++++++++
11-
LL | x = q::<_, N>(x).to_vec_co();
12-
| ++++++++++++
5+
| ^^^^^^^^^^^^- help: try using a conversion method: `.to_vec()`
6+
| |
7+
| cyclic type of infinite size
138

149
error: aborting due to previous error
1510

tests/ui/suggestions/issue-53692.stderr

+4-8
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,14 @@ error[E0308]: mismatched types
22
--> $DIR/issue-53692.rs:6:33
33
|
44
LL | let items_clone: Vec<i32> = ref_items.clone();
5-
| -------- ^^^^^^^^^^^^^^^^^ expected `Vec<i32>`, found `&[i32]`
6-
| |
5+
| -------- ^^^^^^^^^^-----^^
6+
| | | |
7+
| | | help: try using a conversion method: `to_vec`
8+
| | expected `Vec<i32>`, found `&[i32]`
79
| expected due to this
810
|
911
= note: expected struct `Vec<i32>`
1012
found reference `&[i32]`
11-
help: try using a conversion method
12-
|
13-
LL | let items_clone: Vec<i32> = ref_items.to_vec();
14-
| ~~~~~~
15-
LL | let items_clone: Vec<i32> = ref_items.to_vec_co();
16-
| ~~~~~~~~~
1713

1814
error[E0308]: mismatched types
1915
--> $DIR/issue-53692.rs:13:26

tests/ui/typeck/conversion-methods.stderr

-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ help: try using a conversion method
3939
|
4040
LL | let _prove_piercing_earnest: Vec<usize> = (&[1, 2, 3]).to_vec();
4141
| + ++++++++++
42-
LL | let _prove_piercing_earnest: Vec<usize> = (&[1, 2, 3]).to_vec_co();
43-
| + +++++++++++++
4442

4543
error: aborting due to 4 previous errors
4644

0 commit comments

Comments
 (0)