summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/return-type-notation/issue-110963-early.stderr
blob: feae2698e8faa2b1c102ad722af355d79a661d2c (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
warning: the feature `return_type_notation` is incomplete and may not be safe to use and/or cause compiler crashes
  --> $DIR/issue-110963-early.rs:4:12
   |
LL | #![feature(return_type_notation)]
   |            ^^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #109417 <https://github.com/rust-lang/rust/issues/109417> for more information
   = note: `#[warn(incomplete_features)]` on by default

error[E0308]: mismatched types
  --> $DIR/issue-110963-early.rs:14:5
   |
LL | /     spawn(async move {
LL | |         let mut hc = hc;
LL | |         if !hc.check().await {
LL | |             log_health_check_failure().await;
LL | |         }
LL | |     });
   | |______^ one type is more general than the other
   |
   = note: expected trait `Send`
              found trait `for<'a> Send`
note: the lifetime requirement is introduced here
  --> $DIR/issue-110963-early.rs:34:17
   |
LL |     F: Future + Send + 'static,
   |                 ^^^^

error[E0308]: mismatched types
  --> $DIR/issue-110963-early.rs:14:5
   |
LL | /     spawn(async move {
LL | |         let mut hc = hc;
LL | |         if !hc.check().await {
LL | |             log_health_check_failure().await;
LL | |         }
LL | |     });
   | |______^ one type is more general than the other
   |
   = note: expected trait `Send`
              found trait `for<'a> Send`
note: the lifetime requirement is introduced here
  --> $DIR/issue-110963-early.rs:34:17
   |
LL |     F: Future + Send + 'static,
   |                 ^^^^
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`

error: aborting due to 2 previous errors; 1 warning emitted

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