about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-08-22 15:15:43 +0200
committerGitHub <noreply@github.com>2019-08-22 15:15:43 +0200
commitaa9490bd7b646f7b62cf831c462cde45598b468f (patch)
tree5e8d148b8ec66e1106b078ec72df0f042ee3ad0c /src/libstd/sys/unix/stack_overflow.rs
parent6c1cdb75ab12a487daee1564beb93e7fd95eff10 (diff)
parenta710c610b2ea1550014e9f6bd20e5e4aed8a716c (diff)
downloadrust-aa9490bd7b646f7b62cf831c462cde45598b468f.tar.gz
rust-aa9490bd7b646f7b62cf831c462cde45598b468f.zip
Rollup merge of #63796 - estebank:opaque_future, r=Centril
Tweak E0308 on opaque types

```
error[E0308]: if and else have incompatible types
  --> file.rs:21:9
   |
18 | /     if true {
19 | |         thing_one()
   | |         ----------- expected because of this
20 | |     } else {
21 | |         thing_two()
   | |         ^^^^^^^^^^^ expected opaque type, found a different opaque type
22 | |     }.await
   | |_____- if and else have incompatible types
   |
   = note: expected type `impl std::future::Future` (opaque type)
              found type `impl std::future::Future` (opaque type)
   = note: distinct uses of `impl Trait` result in different opaque types
   = help: if both futures resolve to the same type, consider `await`ing on both of them
```

r? @Centril
CC #63167
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions