Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- trait Foo {}
- trait Bar: Foo {}
- impl<T: Foo> Bar for T {}
- struct A;
- impl Foo for A {}
- fn take_bar(_: impl Bar) {}
- fn main() {
- take_bar(A);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement