fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/generator-desc.rs:10:19 3 | 4LL | fun(async {}, async {}); 5 | --- -------- ^^^^^^^^ expected `async` block, found a different `async` block 6 | | | 7 | | the expected `async` block 8 | arguments to this function are incorrect 9 | 10 = note: expected `async` block `{async block@$DIR/generator-desc.rs:10:9: 10:17}` 11 found `async` block `{async block@$DIR/generator-desc.rs:10:19: 10:27}` 12note: function defined here 13 --> $DIR/generator-desc.rs:8:4 14 | 15LL | fn fun<F: Future<Output = ()>>(f1: F, f2: F) {} 16 | ^^^ ----- 17 18error[E0308]: mismatched types 19 --> $DIR/generator-desc.rs:12:16 20 | 21LL | fun(one(), two()); 22 | --- ^^^^^ expected future, found a different future 23 | | 24 | arguments to this function are incorrect 25 | 26 = help: consider `await`ing on both `Future`s 27 = note: distinct uses of `impl Trait` result in different opaque types 28note: function defined here 29 --> $DIR/generator-desc.rs:8:4 30 | 31LL | fn fun<F: Future<Output = ()>>(f1: F, f2: F) {} 32 | ^^^ ----- 33 34error[E0308]: mismatched types 35 --> $DIR/generator-desc.rs:14:26 36 | 37LL | fun((async || {})(), (async || {})()); 38 | --- -- ^^^^^^^^^^^^^^^ expected `async` closure body, found a different `async` closure body 39 | | | 40 | | the expected `async` closure body 41 | arguments to this function are incorrect 42 | 43 = note: expected `async` closure body `{async closure body@$DIR/generator-desc.rs:14:19: 14:21}` 44 found `async` closure body `{async closure body@$DIR/generator-desc.rs:14:36: 14:38}` 45note: function defined here 46 --> $DIR/generator-desc.rs:8:4 47 | 48LL | fn fun<F: Future<Output = ()>>(f1: F, f2: F) {} 49 | ^^^ ----- 50 51error: aborting due to 3 previous errors 52 53For more information about this error, try `rustc --explain E0308`.