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
<anon>:1:14: 1:25 error: duplicate definition of module `Foo`
<anon>:1 trait Foo {} impl Foo {} fn main() {}
^~~~~~~~~~~
<anon>:1:1: 1:13 note: first definition of module `Foo` here
<anon>:1 trait Foo {} impl Foo {} fn main() {}
^~~~~~~~~~~~
error: aborting due to previous error
There's no mention of mods in the code, so it would be nice if the error message didn't mention modules at all; and preferably if it just complained that the Foo in impl Foo {} wasn't a type. (Of course, the latter point may change with DST.)