`Static methods no longer require the `static` keyword and instead are distinguished by the lack of a `self` parameter`
Man, am I the only one who really doesn't like implicit things like this?
Man, am I the only one who really doesn't like implicit things like this?
For example:
struct MyType { … }
impl MyType { pub fn foo() { … } }
mod my_module { pub fn foo() { … } }
fn main() {
MyType::foo(); // works
my_module::foo(); // works too
}