summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/next-solver/coroutine.fail.stderr
blob: 14e67727d0ba7b2f6ec8fab22bde574b03f689ef (plain)
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
error[E0277]: the trait bound `{coroutine@$DIR/coroutine.rs:18:21: 18:23}: Coroutine<A>` is not satisfied
  --> $DIR/coroutine.rs:18:21
   |
LL |       needs_coroutine(|| {
   |  _____---------------_^
   | |     |
   | |     required by a bound introduced by this call
LL | |
LL | |
LL | |
LL | |         yield ();
LL | |     });
   | |_____^ the trait `Coroutine<A>` is not implemented for `{coroutine@$DIR/coroutine.rs:18:21: 18:23}`
   |
note: required by a bound in `needs_coroutine`
  --> $DIR/coroutine.rs:14:28
   |
LL | fn needs_coroutine(_: impl Coroutine<A, Yield = B, Return = C>) {}
   |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `needs_coroutine`

error[E0271]: type mismatch resolving `<{coroutine@$DIR/coroutine.rs:18:21: 18:23} as Coroutine<A>>::Yield == B`
  --> $DIR/coroutine.rs:18:21
   |
LL |       needs_coroutine(|| {
   |  _____---------------_^
   | |     |
   | |     required by a bound introduced by this call
LL | |
LL | |
LL | |
LL | |         yield ();
LL | |     });
   | |_____^ types differ
   |
note: required by a bound in `needs_coroutine`
  --> $DIR/coroutine.rs:14:41
   |
LL | fn needs_coroutine(_: impl Coroutine<A, Yield = B, Return = C>) {}
   |                                         ^^^^^^^^^ required by this bound in `needs_coroutine`

error[E0271]: type mismatch resolving `<{coroutine@$DIR/coroutine.rs:18:21: 18:23} as Coroutine<A>>::Return == C`
  --> $DIR/coroutine.rs:18:21
   |
LL |       needs_coroutine(|| {
   |  _____---------------_^
   | |     |
   | |     required by a bound introduced by this call
LL | |
LL | |
LL | |
LL | |         yield ();
LL | |     });
   | |_____^ types differ
   |
note: required by a bound in `needs_coroutine`
  --> $DIR/coroutine.rs:14:52
   |
LL | fn needs_coroutine(_: impl Coroutine<A, Yield = B, Return = C>) {}
   |                                                    ^^^^^^^^^^ required by this bound in `needs_coroutine`

error: aborting due to 3 previous errors

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