-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In typeck, don't assume traits with default methods are in the same c…
…rate But note that default methods still don't work cross-crate (see #2794) -- this just makes it so that when a method is missing in a cross-crate impl, the right error message gets printed. Closes #3344
- Loading branch information
1 parent
cd3cc6d
commit c6b5154
Showing
3 changed files
with
38 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
enum thing = uint; | ||
impl thing : cmp::Ord { //~ ERROR missing method `gt` | ||
pure fn lt(&&other: thing) -> bool { *self < *other } | ||
pure fn le(&&other: thing) -> bool { *self < *other } | ||
pure fn ge(&&other: thing) -> bool { *self < *other } | ||
} | ||
fn main() {} |