-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the full issue reference to equality constraints in
where
clauses
- Loading branch information
Showing
3 changed files
with
16 additions
and
6 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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,6 +1,6 @@ | |||
fn f() where u8 = u16 {} | fn f() where u8 = u16 {} | ||
//~^ ERROR equality constraints are not yet supported in where clauses | //~^ ERROR equality constraints are not yet supported in `where` clauses | ||
fn g() where for<'a> &'static (u8,) == u16, {} | fn g() where for<'a> &'static (u8,) == u16, {} | ||
//~^ ERROR equality constraints are not yet supported in where clauses | //~^ ERROR equality constraints are not yet supported in `where` clauses | ||
|
|
||
fn main() {} | 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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,14 +1,18 @@ | |||
error: equality constraints are not yet supported in where clauses (see #20041) | error: equality constraints are not yet supported in `where` clauses | ||
--> $DIR/where-equality-constraints.rs:1:14 | --> $DIR/where-equality-constraints.rs:1:14 | ||
| | | | ||
LL | fn f() where u8 = u16 {} | LL | fn f() where u8 = u16 {} | ||
| ^^^^^^^^ | | ^^^^^^^^ | ||
| | |||
= note: for more information, see https://github.com/rust-lang/rust/issues/20041 | |||
|
|
||
error: equality constraints are not yet supported in where clauses (see #20041) | error: equality constraints are not yet supported in `where` clauses | ||
--> $DIR/where-equality-constraints.rs:3:14 | --> $DIR/where-equality-constraints.rs:3:14 | ||
| | | | ||
LL | fn g() where for<'a> &'static (u8,) == u16, {} | LL | fn g() where for<'a> &'static (u8,) == u16, {} | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | |||
= note: for more information, see https://github.com/rust-lang/rust/issues/20041 | |||
|
|
||
error: aborting due to 2 previous errors | error: aborting due to 2 previous errors | ||
|
|