Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pub trait Bar<T: core::fmt::Debug> {
- fn meth(&mut self, x: Baz<T>);
- }
- #[derive(Debug)]
- struct Baz<T> {
- x: T,
- }
- #[derive(Debug)]
- #[allow(dead_code)]
- struct Foo {}
- impl<T: core::fmt::Debug> Bar<T> for Foo {
- fn meth(&mut self, x: Baz<T>) {
- dbg!(self);
- dbg!(x);
- }
- }
- fn main() {
- dbg!();
- println!("hello");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement