dlib icon indicating copy to clipboard operation
dlib copied to clipboard

`local ambiguity when calling macro` when using `statics:` and `functions`

Open ids1024 opened this issue 4 months ago • 0 comments

I noticed this testing https://github.com/elinorbgr/dlib/pull/22. After updating the doc tests to build, this error occurs.

---- src/lib.rs - (line 8) stdout ----
error: local ambiguity when calling macro `external_library`: multiple parsing options: built-in NTs ident ('sname') or 1 other option.
  --> src/lib.rs:16:5
   |
11 |     functions:
   |     ^^^^^^^^^

functions: can be matched as a static, so it is ambiguous and fails to compile. I presume this will require a breaking change to the macro to use a non-ambiguous syntax.

ids1024 avatar Oct 16 '24 20:10 ids1024