-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
typeck: always expose repeat count
AnonConst
s' parent in `generics_…
…of`.
- Loading branch information
Showing
7 changed files
with
36 additions
and
64 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
13 changes: 3 additions & 10 deletions
13
src/test/ui/associated-const/associated-const-type-parameter-arrays-2.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,17 +1,10 @@ | ||
error[E0277]: the trait bound `A: Foo` is not satisfied | ||
error: constant expression depends on a generic parameter | ||
--> $DIR/associated-const-type-parameter-arrays-2.rs:16:22 | ||
| | ||
LL | const Y: usize; | ||
| --------------- required by `Foo::Y` | ||
... | ||
LL | let _array = [4; <A as Foo>::Y]; | ||
| ^^^^^^^^^^^^^ the trait `Foo` is not implemented for `A` | ||
| ^^^^^^^^^^^^^ | ||
| | ||
help: consider further restricting this bound | ||
| | ||
LL | pub fn test<A: Foo + Foo, B: Foo>() { | ||
| ^^^^^ | ||
= note: this may fail depending on what value the parameter takes | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0277`. |
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
error[E0220]: associated type `Row` not found for `M` | ||
--> $DIR/issue-39211.rs:11:20 | ||
error: constant expression depends on a generic parameter | ||
--> $DIR/issue-39211.rs:11:17 | ||
| | ||
LL | let a = [3; M::Row::DIM]; | ||
| ^^^ associated type `Row` not found | ||
| ^^^^^^^^^^^ | ||
| | ||
= note: this may fail depending on what value the parameter takes | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0220`. |