Skip to content

Commit

Permalink
chore: codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
fzyzcjy committed Jul 3, 2024
1 parent 30d674c commit bff046a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions frb_example/pure_dart_pde/rust/src/api/misc_no_twin_example_a.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,3 +174,18 @@ impl MyStructWithTryFromTwinNormal {
self.0.to_owned()
}
}

// https://github.com/fzyzcjy/flutter_rust_bridge/issues/2170
pub trait Issue2170Trait {
fn method(&self);
}

pub struct Issue2170Struct {
pub field: Box<dyn Issue2170Trait>,
}

impl std::fmt::Debug for Issue2170Struct {
fn fmt(&self, _f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
unimplemented!()
}
}

0 comments on commit bff046a

Please sign in to comment.