summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/issue-103181-2.stderr
blob: cb5253ea6cd8827d75ee402298a46c2a34766a13 (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[E0425]: cannot find value `ident_error` in this scope
  --> $DIR/issue-103181-2.rs:12:5
   |
LL |     ident_error;
   |     ^^^^^^^^^^^ not found in this scope

error: cannot check whether the hidden type of opaque type satisfies auto traits
  --> $DIR/issue-103181-2.rs:26:15
   |
LL |     normalize(broken_fut(), ());
   |     --------- ^^^^^^^^^^^^
   |     |
   |     required by a bound introduced by this call
   |
note: opaque type is declared here
  --> $DIR/issue-103181-2.rs:11:23
   |
LL | async fn broken_fut() {
   |                       ^
note: this item depends on auto traits of the hidden type, but may also be registering the hidden type. This is not supported right now. You can try moving the opaque type and the item that actually registers a hidden type into a new submodule
  --> $DIR/issue-103181-2.rs:20:10
   |
LL | async fn iceice<A, B>()
   |          ^^^^^^
note: required for `impl Future<Output = ()>` to implement `SendFuture`
  --> $DIR/issue-103181-2.rs:7:17
   |
LL | impl<Fut: Send> SendFuture for Fut {
   |           ----  ^^^^^^^^^^     ^^^
   |           |
   |           unsatisfied trait bound introduced here
note: required by a bound in `normalize`
  --> $DIR/issue-103181-2.rs:18:19
   |
LL | fn normalize<Fut: SendFuture>(_: Fut, _: Fut::Output) {}
   |                   ^^^^^^^^^^ required by this bound in `normalize`

error: cannot check whether the hidden type of opaque type satisfies auto traits
  --> $DIR/issue-103181-2.rs:26:5
   |
LL |     normalize(broken_fut(), ());
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
note: opaque type is declared here
  --> $DIR/issue-103181-2.rs:11:23
   |
LL | async fn broken_fut() {
   |                       ^
note: this item depends on auto traits of the hidden type, but may also be registering the hidden type. This is not supported right now. You can try moving the opaque type and the item that actually registers a hidden type into a new submodule
  --> $DIR/issue-103181-2.rs:20:10
   |
LL | async fn iceice<A, B>()
   |          ^^^^^^
note: required for `impl Future<Output = ()>` to implement `SendFuture`
  --> $DIR/issue-103181-2.rs:7:17
   |
LL | impl<Fut: Send> SendFuture for Fut {
   |           ----  ^^^^^^^^^^     ^^^
   |           |
   |           unsatisfied trait bound introduced here

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0425`.