hobofan / ambassador

Delegation of trait implementations via procedural macros
Apache License 2.0
251 stars 13 forks source link

Attribute panics on associated types #21

Closed SuperFluffy closed 2 years ago

SuperFluffy commented 4 years ago

I want to delegate a trait that has associated types, but the adding the delegatable_trait attribute causes a panic.

use ambassador::{
    delegatable_trait,
};

#[delegatable_trait]
trait WithAssocType {
    type Assoc;
}
error: custom attribute panicked
 --> src/lib.rs:6:1
  |
6 | #[delegatable_trait]
  | ^^^^^^^^^^^^^^^^^^^^
  |
  = help: message: not implemented