You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/home/brian/dev/rust/src/test/run-pass/test.rs:10:19: 10:42 error: not enough type parameters provided for this item
/home/brian/dev/rust/src/test/run-pass/test.rs:10 let _1:float = Nummy::from_inty::<int>(1i);
^~~~~~~~~~~~~~~~~~~~~~~
/home/brian/dev/rust/src/test/run-pass/test.rs:10:19: 10:47 error: this function takes 0 parameters but 1 parameter was supplied
/home/brian/dev/rust/src/test/run-pass/test.rs:10 let _1:float = Nummy::from_inty::<int>(1i);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: aborting due to 2 previous errors
The text was updated successfully, but these errors were encountered:
Static methods have an implicit type parameter for the self type. Calling it with Nummy::from_inty::<float, int>().
This is, at least, my intended behavior when I implemented them. It isn't clear to me what else would be sensible. This mostly sounds like a documentation problem?
This test specifies the type parameters to
from_inty
but rustc says it didn't.The text was updated successfully, but these errors were encountered: