forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#72831 - Dylan-DPC:rollup-6rxjwt9, r=Dylan-DPC
Rollup of 5 pull requests Successful merges: - rust-lang#72691 (Fix escape key handling) - rust-lang#72807 (Avoid setting wrong obligation cause span of associated type mismatch) - rust-lang#72812 (Miri tests: skip parts of test_char_range) - rust-lang#72829 (Clarify terms in doc comments) - rust-lang#72830 (Fix release notes for niche initialization change) Failed merges: r? @ghost
- Loading branch information
Showing
7 changed files
with
62 additions
and
29 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
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,20 @@ | ||
trait Bar { | ||
type Ok; | ||
type Sibling: Bar2<Ok=char>; | ||
} | ||
trait Bar2 { | ||
type Ok; | ||
} | ||
|
||
struct Foo; | ||
struct Foo2; | ||
|
||
impl Bar for Foo { //~ ERROR type mismatch resolving `<Foo2 as Bar2>::Ok == char` | ||
type Ok = (); | ||
type Sibling = Foo2; | ||
} | ||
impl Bar2 for Foo2 { | ||
type Ok = u32; | ||
} | ||
|
||
fn main() {} |
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,9 @@ | ||
error[E0271]: type mismatch resolving `<Foo2 as Bar2>::Ok == char` | ||
--> $DIR/issue-72806.rs:12:6 | ||
| | ||
LL | impl Bar for Foo { | ||
| ^^^ expected `u32`, found `char` | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0271`. |