Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Parents {
- tags: Vec<Tag>,
- }
- impl Parents {
- fn new() -> Self {
- Parents { tags: Vec::new() }
- }
- error[E0223]: ambiguous associated type
- --> src/main.rs:81:22
- |
- 81 | let mut parents: Parents::new();
- | ^^^^^^^^^^^^^^ ambiguous associated type
- |
- = note: specify the type using the syntax `<Parents as Trait>::new`
Add Comment
Please, Sign In to add comment