Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

multiple errors for the same problem #1803

Closed
db48x opened this issue Feb 10, 2012 · 0 comments
Closed

multiple errors for the same problem #1803

db48x opened this issue Feb 10, 2012 · 0 comments

Comments

@db48x
Copy link
Contributor

db48x commented Feb 10, 2012

I've defined more than one impl for an interface, and they are all in scope at the moment. Here are the errors I get:

src/libcore/str.rs:695:4: 695:13 error: mismatched types: expected `u8` but found `char` (types differ)
src/libcore/str.rs:695     iter::all(s, { |c| r += escape_char(c); true });
                           ^~~~~~~~~
src/libcore/str.rs:695:4: 695:13 error: multiple applicable implementations in scope
src/libcore/str.rs:695     iter::all(s, { |c| r += escape_char(c); true });
                           ^~~~~~~~~
src/libcore/str.rs:695:4: 695:13 error: multiple applicable implementations in scope
src/libcore/str.rs:695     iter::all(s, { |c| r += escape_char(c); true });
                           ^~~~~~~~~
src/libcore/str.rs:695:4: 695:13 error: multiple applicable implementations in scope
src/libcore/str.rs:695     iter::all(s, { |c| r += escape_char(c); true });
                           ^~~~~~~~~
src/libcore/str.rs:1020:8: 1020:17 error: mismatched types: expected `u8` but found `char` (types differ)
src/libcore/str.rs:1020     ret iter::all(s, char::is_whitespace);
                                ^~~~~~~~~
src/libcore/str.rs:1020:8: 1020:17 error: multiple applicable implementations in scope
src/libcore/str.rs:1020     ret iter::all(s, char::is_whitespace);
                                ^~~~~~~~~
src/libcore/str.rs:1020:8: 1020:17 error: multiple applicable implementations in scope
src/libcore/str.rs:1020     ret iter::all(s, char::is_whitespace);
                                ^~~~~~~~~
src/libcore/str.rs:1020:8: 1020:17 error: multiple applicable implementations in scope
src/libcore/str.rs:1020     ret iter::all(s, char::is_whitespace);
                                ^~~~~~~~~

Notice that I got four errors for each of two call sites, and three of those four are identical.

Kobzol pushed a commit to Kobzol/rust that referenced this issue Dec 30, 2024
bors pushed a commit to rust-lang-ci/rust that referenced this issue Jan 2, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants