Skip to content

rusti: duplicate definitions are accepted but break all further interaction #5675

Closed
@ben0x539

Description

@ben0x539

sample session:

$ rusti
WARNING: The Rust REPL is experimental and may be
unstable. If you encounter problems, please use the
compiler instead.
rusti> fn f() {}
()
rusti> fn f() {}
()
rusti> 42;
<anon>:35:0: 35:10 error: duplicate definition of value f
<anon>:35 fn f() { }
          ^~~~~~~~~~
<anon>:33:0: 33:10 note: first definition of value f here:
<anon>:33 fn f() { }
          ^~~~~~~~~~
error: aborting due to previous error
rust: task failed at 'explicit failure', /home/ben/code/repos/rust/src/libsyntax/diagnostic.rs:99

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions