File: recursive-in-exhaustiveness.next.stderr

package info (click to toggle)
rustc 1.88.0%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid
  • size: 934,168 kB
  • sloc: xml: 158,127; python: 36,062; javascript: 19,855; sh: 19,700; cpp: 18,947; ansic: 12,993; asm: 4,792; makefile: 690; perl: 29; lisp: 29; ruby: 19; sql: 11
file content (80 lines) | stat: -rw-r--r-- 2,954 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
error[E0284]: type annotations needed: cannot satisfy `impl Sized == _`
  --> $DIR/recursive-in-exhaustiveness.rs:19:17
   |
LL |     let (x,) = (build(x),);
   |                 ^^^^^^^^ cannot satisfy `impl Sized == _`

error[E0271]: type mismatch resolving `build2<(_,)>::{opaque#0} normalizes-to _`
  --> $DIR/recursive-in-exhaustiveness.rs:31:6
   |
LL |     (build2(x),)
   |      ^^^^^^^^^ types differ

error[E0271]: type mismatch resolving `build2<(_,)>::{opaque#0} normalizes-to _`
  --> $DIR/recursive-in-exhaustiveness.rs:31:5
   |
LL |     (build2(x),)
   |     ^^^^^^^^^^^^ types differ

error[E0277]: the size for values of type `(impl Sized,)` cannot be known at compilation time
  --> $DIR/recursive-in-exhaustiveness.rs:31:5
   |
LL |     (build2(x),)
   |     ^^^^^^^^^^^^ doesn't have a size known at compile-time
   |
   = help: the trait `Sized` is not implemented for `(impl Sized,)`
   = note: tuples must have a statically known size to be initialized

error[E0271]: type mismatch resolving `build3<(T,)>::{opaque#0} normalizes-to _`
  --> $DIR/recursive-in-exhaustiveness.rs:42:17
   |
LL |     let (x,) = (build3((x,)),);
   |                 ^^^^^^^^^^^^ types differ

error[E0277]: the size for values of type `(impl Sized,)` cannot be known at compilation time
  --> $DIR/recursive-in-exhaustiveness.rs:42:16
   |
LL |     let (x,) = (build3((x,)),);
   |                ^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
   |
   = help: the trait `Sized` is not implemented for `(impl Sized,)`
   = note: tuples must have a statically known size to be initialized

error[E0308]: mismatched types
  --> $DIR/recursive-in-exhaustiveness.rs:42:16
   |
LL | fn build3<T>(x: T) -> impl Sized {
   |                       ---------- the found opaque type
LL |
LL |     let (x,) = (build3((x,)),);
   |                ^^^^^^^^^^^^^^^ types differ
   |
   = note: expected type `_`
             found tuple `(impl Sized,)`

error[E0271]: type mismatch resolving `build3<(T,)>::{opaque#0} normalizes-to _`
  --> $DIR/recursive-in-exhaustiveness.rs:42:17
   |
LL |     let (x,) = (build3((x,)),);
   |                 ^^^^^^^^^^^^ types differ
   |
   = note: the return type of a function must have a statically known size

error[E0271]: type mismatch resolving `build3<(T,)>::{opaque#0} normalizes-to _`
  --> $DIR/recursive-in-exhaustiveness.rs:42:16
   |
LL |     let (x,) = (build3((x,)),);
   |                ^^^^^^^^^^^^^^^ types differ

error[E0271]: type mismatch resolving `build3<(T,)>::{opaque#0} normalizes-to _`
  --> $DIR/recursive-in-exhaustiveness.rs:42:17
   |
LL |     let (x,) = (build3((x,)),);
   |                 ^^^^^^^^^^^^ types differ
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`

error: aborting due to 10 previous errors

Some errors have detailed explanations: E0271, E0277, E0284, E0308.
For more information about an error, try `rustc --explain E0271`.