forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
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#116756 - fee1-dead-contrib:dupe-those-bounds,…
… r=oli-obk Duplicate `~const` bounds with a non-const one in effects desugaring This should unblock rust-lang#116058. r? `@oli-obk`
- Loading branch information
Showing
10 changed files
with
661 additions
and
40 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
14 changes: 6 additions & 8 deletions
14
tests/ui/rfcs/rfc-2632-const-trait-impl/assoc-type-const-bound-usage.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,12 @@ | ||
error[E0277]: the trait bound `T: Foo` is not satisfied | ||
--> $DIR/assoc-type-const-bound-usage.rs:12:6 | ||
error[E0308]: mismatched types | ||
--> $DIR/assoc-type-const-bound-usage.rs:12:5 | ||
| | ||
LL | <T as Foo>::Assoc::foo(); | ||
| ^ the trait `Foo` is not implemented for `T` | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^ expected `host`, found `true` | ||
| | ||
help: consider further restricting this bound | ||
| | ||
LL | const fn foo<T: ~const Foo + Foo>() { | ||
| +++++ | ||
= note: expected constant `host` | ||
found constant `true` | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0277`. | ||
For more information about this error, try `rustc --explain E0308`. |
Oops, something went wrong.