summaryrefslogtreecommitdiffstats
path: root/third_party/rust/uniffi/tests/ui/version_mismatch.stderr
blob: bc30714099a9be5d13be1abde358d5c18bb28f19 (plain)
1
2
3
4
5
6
7
error[E0080]: evaluation of constant value failed
 --> tests/ui/version_mismatch.rs:2:1
  |
2 | uniffi::assert_compatible_version!("0.0.1"); // An error message would go here.
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to compute `0_usize - 1_usize`, which would overflow
  |
  = note: this error originates in the macro `uniffi::deps::static_assertions::const_assert` which comes from the expansion of the macro `uniffi::assert_compatible_version` (in Nightly builds, run with -Z macro-backtrace for more info)