On 31/10/15 03:00, Pranesha Shashwath Kumar Kattepura Jayabheema Rao wrote:
Hi,
We are getting an error "This function takes 4 parameters but 3 were
supplied" for all the instances of the function get_specified!.
Adding to what Josh said: get_specified! is not a function, it’s a
macro. (This is visible by the ! mark.) So "this function" refers to
something else. Rather than returning a value like functions, macros
expand to more code. Errors like "This function takes N parameters"
occur after macro expansion. You can read more about macros at
http://doc.rust-lang.org/book/macros.html
--
Simon Sapin
_______________________________________________
dev-servo mailing list
dev-servo@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-servo