@@ -10,6 +10,14 @@ error[E0271]: type mismatch resolving `build2<(_,)>::{opaque#0} normalizes-to _`
10
10
LL | (build2(x),)
11
11
| ^^^^^^^^^ types differ
12
12
13
+ error[E0271]: type mismatch resolving `build2<(_,)>::{opaque#0} normalizes-to _`
14
+ --> $DIR/recursive-in-exhaustiveness.rs:31:6
15
+ |
16
+ LL | (build2(x),)
17
+ | ^^^^^^^^^ types differ
18
+ |
19
+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
20
+
13
21
error[E0271]: type mismatch resolving `build2<(_,)>::{opaque#0} normalizes-to _`
14
22
--> $DIR/recursive-in-exhaustiveness.rs:31:5
15
23
|
@@ -26,13 +34,21 @@ LL | (build2(x),)
26
34
= note: tuples must have a statically known size to be initialized
27
35
28
36
error[E0271]: type mismatch resolving `build3<(T,)>::{opaque#0} normalizes-to _`
29
- --> $DIR/recursive-in-exhaustiveness.rs:42 :17
37
+ --> $DIR/recursive-in-exhaustiveness.rs:43 :17
30
38
|
31
39
LL | let (x,) = (build3((x,)),);
32
40
| ^^^^^^^^^^^^ types differ
33
41
42
+ error[E0271]: type mismatch resolving `build3<(T,)>::{opaque#0} normalizes-to _`
43
+ --> $DIR/recursive-in-exhaustiveness.rs:43:17
44
+ |
45
+ LL | let (x,) = (build3((x,)),);
46
+ | ^^^^^^^^^^^^ types differ
47
+ |
48
+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
49
+
34
50
error[E0277]: the size for values of type `(impl Sized,)` cannot be known at compilation time
35
- --> $DIR/recursive-in-exhaustiveness.rs:42 :16
51
+ --> $DIR/recursive-in-exhaustiveness.rs:43 :16
36
52
|
37
53
LL | let (x,) = (build3((x,)),);
38
54
| ^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
@@ -41,7 +57,7 @@ LL | let (x,) = (build3((x,)),);
41
57
= note: tuples must have a statically known size to be initialized
42
58
43
59
error[E0308]: mismatched types
44
- --> $DIR/recursive-in-exhaustiveness.rs:42 :16
60
+ --> $DIR/recursive-in-exhaustiveness.rs:43 :16
45
61
|
46
62
LL | fn build3<T>(x: T) -> impl Sized {
47
63
| ---------- the found opaque type
@@ -53,28 +69,28 @@ LL | let (x,) = (build3((x,)),);
53
69
found tuple `(impl Sized,)`
54
70
55
71
error[E0271]: type mismatch resolving `build3<(T,)>::{opaque#0} normalizes-to _`
56
- --> $DIR/recursive-in-exhaustiveness.rs:42 :17
72
+ --> $DIR/recursive-in-exhaustiveness.rs:43 :17
57
73
|
58
74
LL | let (x,) = (build3((x,)),);
59
75
| ^^^^^^^^^^^^ types differ
60
76
|
61
77
= note: the return type of a function must have a statically known size
62
78
63
79
error[E0271]: type mismatch resolving `build3<(T,)>::{opaque#0} normalizes-to _`
64
- --> $DIR/recursive-in-exhaustiveness.rs:42 :16
80
+ --> $DIR/recursive-in-exhaustiveness.rs:43 :16
65
81
|
66
82
LL | let (x,) = (build3((x,)),);
67
83
| ^^^^^^^^^^^^^^^ types differ
68
84
69
85
error[E0271]: type mismatch resolving `build3<(T,)>::{opaque#0} normalizes-to _`
70
- --> $DIR/recursive-in-exhaustiveness.rs:42 :17
86
+ --> $DIR/recursive-in-exhaustiveness.rs:43 :17
71
87
|
72
88
LL | let (x,) = (build3((x,)),);
73
89
| ^^^^^^^^^^^^ types differ
74
90
|
75
91
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
76
92
77
- error: aborting due to 10 previous errors
93
+ error: aborting due to 12 previous errors
78
94
79
95
Some errors have detailed explanations: E0271, E0277, E0284, E0308.
80
96
For more information about an error, try `rustc --explain E0271`.
0 commit comments