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