-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move a wf-check into the site where the value is instantiated
- Loading branch information
Showing
8 changed files
with
95 additions
and
59 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
4 changes: 2 additions & 2 deletions
4
src/test/ui/rfc-2632-const-trait-impl/super-traits-fail-2.nn.stderr
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
error: ~const can only be applied to `#[const_trait]` traits | ||
--> $DIR/super-traits-fail-2.rs:11:12 | ||
--> $DIR/super-traits-fail-2.rs:11:19 | ||
| | ||
LL | trait Bar: ~const Foo {} | ||
| ^^^^^^^^^^ | ||
| ^^^ | ||
|
||
error: aborting due to previous error | ||
|
4 changes: 2 additions & 2 deletions
4
src/test/ui/rfc-2632-const-trait-impl/super-traits-fail-2.ny.stderr
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
error: ~const can only be applied to `#[const_trait]` traits | ||
--> $DIR/super-traits-fail-2.rs:11:12 | ||
--> $DIR/super-traits-fail-2.rs:11:19 | ||
| | ||
LL | trait Bar: ~const Foo {} | ||
| ^^^^^^^^^^ | ||
| ^^^ | ||
|
||
error: aborting due to previous error | ||
|
8 changes: 4 additions & 4 deletions
8
src/test/ui/rfc-2632-const-trait-impl/super-traits-fail-3.nn.stderr
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
error: ~const can only be applied to `#[const_trait]` traits | ||
--> $DIR/super-traits-fail-3.rs:12:12 | ||
--> $DIR/super-traits-fail-3.rs:12:19 | ||
| | ||
LL | trait Bar: ~const Foo {} | ||
| ^^^^^^^^^^ | ||
| ^^^ | ||
|
||
error: ~const can only be applied to `#[const_trait]` traits | ||
--> $DIR/super-traits-fail-3.rs:15:17 | ||
--> $DIR/super-traits-fail-3.rs:15:24 | ||
| | ||
LL | const fn foo<T: ~const Bar>(x: &T) { | ||
| ^^^^^^^^^^ | ||
| ^^^ | ||
|
||
error: aborting due to 2 previous errors | ||
|
Oops, something went wrong.