How many arguments can I pass to a function?

What is the theoretical limitation for the number of arguments possible to pass to a function in Rust? :thinking:

Not sure if it's documented anywhere, but the current answer is 65535. Trying to go over it will give you the error

error: function can not have more than 65535 arguments

Wow, thank you! Seems enough for my needs. :joy: