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.)
The text was updated successfully, but these errors were encountered:
Due to many language changes in the meantime since this was opened, all examples here now give reasonable errors, and I'm fairly certain that tests exist for all of them, so I'm going to close this out of old age basically.
Gives
There's no mention of
mod
s 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 theFoo
inimpl Foo {}
wasn't a type. (Of course, the latter point may change with DST.)The text was updated successfully, but these errors were encountered: