``` rust struct Foo; fn main() { Foo::bar(); } ``` ``` ERROR:rustc::middle::resolve: !!! (resolving module in lexical scope) module wasn't actually a module! <anon>:18:21: 18:29 error: unresolved name <anon>:18 struct Foo; Foo::bar() ^~~~~~~~ <anon>:18:21: 18:29 error: use of undeclared module `Foo` <anon>:18 struct Foo; Foo::bar() ^~~~~~~~ ERROR:rustc::middle::resolve: !!! (resolving module in lexical scope) module wasn't actually a module! <anon>:18:21: 18:29 error: unresolved name `Foo::bar`. <anon>:18 struct Foo; Foo::bar() ^~~~~~~~ error: aborting due to 3 previous errors playpen: application terminated with error code 101 ``` If there is some other static method, then calling a non-existent method gives a sensible "cannot resolve method `Foo::bar`" error.