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#64938 - estebank:ice-ice-baby, r=matthewjasper
Avoid ICE on ReFree region on where clause Fix rust-lang#64855.
- Loading branch information
Showing
4 changed files
with
29 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// check-pass | ||
|
||
pub struct Bar<'a>(&'a Self) where Self: ; | ||
|
||
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,8 @@ | ||
pub trait Foo { | ||
type Type; | ||
} | ||
|
||
pub struct Bar<T>(<Self as Foo>::Type) where Self: ; | ||
//~^ ERROR the trait bound `Bar<T>: Foo` is not satisfied | ||
|
||
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[E0277]: the trait bound `Bar<T>: Foo` is not satisfied | ||
--> $DIR/issue-64855.rs:5:19 | ||
| | ||
LL | pub struct Bar<T>(<Self as Foo>::Type) where Self: ; | ||
| ^^^^^^^^^^^^^^^^^^^ the trait `Foo` is not implemented for `Bar<T>` | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0277`. |