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