-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
54 changed files
with
132 additions
and
132 deletions.
There are no files selected for viewing
8 changes: 4 additions & 4 deletions
8
src/test/ui/const-generics/array-size-in-generic-struct-param.min.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
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/const-generics/const-argument-if-length.min.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
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
...onst-generics/const_evaluatable_checked/feature-gate-const_evaluatable_checked.min.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,10 +1,10 @@ | ||
error: generic parameters must not be used inside const evaluations | ||
error: generic parameters may not be used in const operations | ||
--> $DIR/feature-gate-const_evaluatable_checked.rs:6:33 | ||
| | ||
LL | type Arr<const N: usize> = [u8; N - 1]; | ||
| ^ cannot perform const operation using `N` | ||
| | ||
= help: const parameters may only be used as standalone arguments `N` | ||
= help: const parameters may only be used as standalone arguments, i.e. `N` | ||
|
||
error: aborting due to previous error | ||
|
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
8 changes: 4 additions & 4 deletions
8
src/test/ui/const-generics/const_evaluatable_checked/simple.min.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,18 +1,18 @@ | ||
error: generic parameters must not be used inside const evaluations | ||
error: generic parameters may not be used in const operations | ||
--> $DIR/simple.rs:8:53 | ||
| | ||
LL | fn test<const N: usize>() -> [u8; N - 1] where [u8; N - 1]: Default { | ||
| ^ cannot perform const operation using `N` | ||
| | ||
= help: const parameters may only be used as standalone arguments `N` | ||
= help: const parameters may only be used as standalone arguments, i.e. `N` | ||
|
||
error: generic parameters must not be used inside const evaluations | ||
error: generic parameters may not be used in const operations | ||
--> $DIR/simple.rs:8:35 | ||
| | ||
LL | fn test<const N: usize>() -> [u8; N - 1] where [u8; N - 1]: Default { | ||
| ^ cannot perform const operation using `N` | ||
| | ||
= help: const parameters may only be used as standalone arguments `N` | ||
= help: const parameters may only be used as standalone arguments, i.e. `N` | ||
|
||
error: aborting due to 2 previous errors | ||
|
4 changes: 2 additions & 2 deletions
4
src/test/ui/const-generics/const_evaluatable_checked/simple_fail.min.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,10 +1,10 @@ | ||
error: generic parameters must not be used inside const evaluations | ||
error: generic parameters may not be used in const operations | ||
--> $DIR/simple_fail.rs:7:33 | ||
| | ||
LL | type Arr<const N: usize> = [u8; N - 1]; | ||
| ^ cannot perform const operation using `N` | ||
| | ||
= help: const parameters may only be used as standalone arguments `N` | ||
= help: const parameters may only be used as standalone arguments, i.e. `N` | ||
|
||
error: aborting due to previous error | ||
|
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
8 changes: 4 additions & 4 deletions
8
src/test/ui/const-generics/generic-function-call-in-array-length.min.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,18 +1,18 @@ | ||
error: generic parameters must not be used inside const evaluations | ||
error: generic parameters may not be used in const operations | ||
--> $DIR/generic-function-call-in-array-length.rs:9:39 | ||
| | ||
LL | fn bar<const N: usize>() -> [u32; foo(N)] { | ||
| ^ cannot perform const operation using `N` | ||
| | ||
= help: const parameters may only be used as standalone arguments `N` | ||
= help: const parameters may only be used as standalone arguments, i.e. `N` | ||
|
||
error: generic parameters must not be used inside const evaluations | ||
error: generic parameters may not be used in const operations | ||
--> $DIR/generic-function-call-in-array-length.rs:12:13 | ||
| | ||
LL | [0; foo(N)] | ||
| ^ cannot perform const operation using `N` | ||
| | ||
= help: const parameters may only be used as standalone arguments `N` | ||
= help: const parameters may only be used as standalone arguments, i.e. `N` | ||
|
||
error: aborting due to 2 previous errors | ||
|
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
8 changes: 4 additions & 4 deletions
8
src/test/ui/const-generics/generic-sum-in-array-length.min.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,18 +1,18 @@ | ||
error: generic parameters must not be used inside const evaluations | ||
error: generic parameters may not be used in const operations | ||
--> $DIR/generic-sum-in-array-length.rs:7:53 | ||
| | ||
LL | fn foo<const A: usize, const B: usize>(bar: [usize; A + B]) {} | ||
| ^ cannot perform const operation using `A` | ||
| | ||
= help: const parameters may only be used as standalone arguments `A` | ||
= help: const parameters may only be used as standalone arguments, i.e. `A` | ||
|
||
error: generic parameters must not be used inside const evaluations | ||
error: generic parameters may not be used in const operations | ||
--> $DIR/generic-sum-in-array-length.rs:7:57 | ||
| | ||
LL | fn foo<const A: usize, const B: usize>(bar: [usize; A + B]) {} | ||
| ^ cannot perform const operation using `B` | ||
| | ||
= help: const parameters may only be used as standalone arguments `B` | ||
= help: const parameters may only be used as standalone arguments, i.e. `B` | ||
|
||
error: aborting due to 2 previous errors | ||
|
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/const-generics/intrinsics-type_name-as-const-argument.min.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
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
8 changes: 4 additions & 4 deletions
8
src/test/ui/const-generics/issue-61522-array-len-succ.min.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,18 +1,18 @@ | ||
error: generic parameters must not be used inside const evaluations | ||
error: generic parameters may not be used in const operations | ||
--> $DIR/issue-61522-array-len-succ.rs:7:45 | ||
| | ||
LL | pub struct MyArray<const COUNT: usize>([u8; COUNT + 1]); | ||
| ^^^^^ cannot perform const operation using `COUNT` | ||
| | ||
= help: const parameters may only be used as standalone arguments `COUNT` | ||
= help: const parameters may only be used as standalone arguments, i.e. `COUNT` | ||
|
||
error: generic parameters must not be used inside const evaluations | ||
error: generic parameters may not be used in const operations | ||
--> $DIR/issue-61522-array-len-succ.rs:12:30 | ||
| | ||
LL | fn inner(&self) -> &[u8; COUNT + 1] { | ||
| ^^^^^ cannot perform const operation using `COUNT` | ||
| | ||
= help: const parameters may only be used as standalone arguments `COUNT` | ||
= help: const parameters may only be used as standalone arguments, i.e. `COUNT` | ||
|
||
error: aborting due to 2 previous errors | ||
|
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
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,10 +1,10 @@ | ||
error: generic parameters must not be used inside const evaluations | ||
error: generic parameters may not be used in const operations | ||
--> $DIR/issue-61747.rs:8:30 | ||
| | ||
LL | fn successor() -> Const<{C + 1}> { | ||
| ^ cannot perform const operation using `C` | ||
| | ||
= help: const parameters may only be used as standalone arguments `C` | ||
= help: const parameters may only be used as standalone arguments, i.e. `C` | ||
|
||
error: aborting due to previous error | ||
|
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,10 +1,10 @@ | ||
error: generic parameters must not be used inside const evaluations | ||
error: generic parameters may not be used in const operations | ||
--> $DIR/issue-61935.rs:10:23 | ||
| | ||
LL | Self:FooImpl<{N==0}> | ||
| ^ cannot perform const operation using `N` | ||
| | ||
= help: const parameters may only be used as standalone arguments `N` | ||
= help: const parameters may only be used as standalone arguments, i.e. `N` | ||
|
||
error: aborting due to previous error | ||
|
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
Oops, something went wrong.