Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 5 years ago

Language

Rust

Compiler

rust 1.18.0

Options

Author

anonymous

almost 5 years ago

$ rust prog.rs
error[E0308]: mismatched types
 --> prog.rs:8:21
  |
8 |     let cc = xxfunc(aa, bb);
  |                     ^^ expected u32, found u16
  |
  = help: here are some functions which might fulfill your needs:
          - .count_ones()
          - .count_zeros()
          - .leading_zeros()
          - .trailing_zeros()

error[E0308]: mismatched types
 --> prog.rs:8:25
  |
8 |     let cc = xxfunc(aa, bb);
  |                         ^^ expected u32, found u16
  |
  = help: here are some functions which might fulfill your needs:
          - .count_ones()
          - .count_zeros()
          - .leading_zeros()
          - .trailing_zeros()

error: aborting due to 2 previous errors

Exit Code:
101