Skip to content

Functions created with lamellar::am macro are not (all) public #36

@JosephCottam

Description

@JosephCottam

I have an AM defined in file1 and I'm trying to use it in file2. This results in a compiler error like

error[E0624]: associated function `create_am_group` is private
  --> src/variants/file2.rs:
   |
   |         let mut msgs = typed_am_group!(Messages, lamellar::world);
   |                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ private associated function
   |
  ::: src/variants/file1.rs:
   |
   | #[lamellar::am]
   | --------------- private associated function defined here
   |
   = note: this error originates in the macro `typed_am_group` (in Nightly builds, run with -Z macro-backtrace for more info)

I get the error for typed_am_group and add_am_pe (but there may be others latent).

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions