Guest User

Untitled

a guest
May 22nd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. struct Parents {
  2. tags: Vec<Tag>,
  3. }
  4.  
  5. impl Parents {
  6. fn new() -> Self {
  7. Parents { tags: Vec::new() }
  8. }
  9.  
  10.  
  11. error[E0223]: ambiguous associated type
  12. --> src/main.rs:81:22
  13. |
  14. 81 | let mut parents: Parents::new();
  15. | ^^^^^^^^^^^^^^ ambiguous associated type
  16. |
  17. = note: specify the type using the syntax `<Parents as Trait>::new`
Add Comment
Please, Sign In to add comment