|
| 1 | +error: unconstrained opaque type |
| 2 | + --> $DIR/hkl_forbidden4.rs:10:23 |
| 3 | + | |
| 4 | +LL | type FutNothing<'a> = impl 'a + Future<Output = ()>; |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 6 | + | |
| 7 | + = note: `FutNothing` must be used in combination with a concrete type within the same module |
| 8 | + |
| 9 | +error: concrete type differs from previous defining opaque type use |
| 10 | + --> $DIR/hkl_forbidden4.rs:13:1 |
| 11 | + | |
| 12 | +LL | async fn operation(_: &mut ()) -> () { |
| 13 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `FutNothing<'_>`, got `{async fn body@$DIR/hkl_forbidden4.rs:13:38: 17:2}` |
| 14 | + | |
| 15 | +note: previous use here |
| 16 | + --> $DIR/hkl_forbidden4.rs:15:5 |
| 17 | + | |
| 18 | +LL | call(operation).await |
| 19 | + | ^^^^^^^^^^^^^^^ |
| 20 | + |
| 21 | +error: concrete type differs from previous defining opaque type use |
| 22 | + --> $DIR/hkl_forbidden4.rs:15:5 |
| 23 | + | |
| 24 | +LL | call(operation).await |
| 25 | + | ^^^^^^^^^^^^^^^ expected `{async fn body@$DIR/hkl_forbidden4.rs:13:38: 17:2}`, got `FutNothing<'_>` |
| 26 | + | |
| 27 | +note: previous use here |
| 28 | + --> $DIR/hkl_forbidden4.rs:13:38 |
| 29 | + | |
| 30 | +LL | async fn operation(_: &mut ()) -> () { |
| 31 | + | ______________________________________^ |
| 32 | +LL | | |
| 33 | +LL | | call(operation).await |
| 34 | +LL | | |
| 35 | +LL | | } |
| 36 | + | |_^ |
| 37 | + |
| 38 | +error[E0792]: expected generic lifetime parameter, found `'any` |
| 39 | + --> $DIR/hkl_forbidden4.rs:22:1 |
| 40 | + | |
| 41 | +LL | type FutNothing<'a> = impl 'a + Future<Output = ()>; |
| 42 | + | -- this generic parameter must be used with a generic lifetime parameter |
| 43 | +... |
| 44 | +LL | / { |
| 45 | +LL | | |
| 46 | +LL | | } |
| 47 | + | |_^ |
| 48 | + |
| 49 | +error: aborting due to 4 previous errors |
| 50 | + |
| 51 | +For more information about this error, try `rustc --explain E0792`. |
0 commit comments