structural-typing 0.1.9

Type-level field presence tracking for Rust structs, inspired by TypeScript
Documentation
1
2
3
4
5
6
7
8
9
10
11
error: no rules expected `name`
 --> tests/ui/select_missing_colon.rs:9:33
  |
9 |     type Invalid = select!(user name);
  |                                 ^^^^ no rules expected this token in macro call
  |
note: while trying to match `:`
 --> src/lib.rs
  |
  |     ($($module:ident)::+ : .. $spread:ty) => {
  |                          ^