-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of #98334 - JohnTitor:issue-73727, r=compiler-errors
Add a full regression test for #73727 Closes #73727 This also moves a test to the `issues` directory as it's also tested on the adt_const_params feature. r? ```@compiler-errors``` Signed-off-by: Yuki Okushi <[email protected]>
- Loading branch information
Showing
3 changed files
with
15 additions
and
7 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...static-reference-array-const-param.stderr → ...ic-reference-array-const-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
14 changes: 14 additions & 0 deletions
14
src/test/ui/const-generics/issues/issue-73727-static-reference-array-const-param.rs
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Regression test for #73727 | ||
|
||
// revisions: full min | ||
//[full]check-pass | ||
|
||
#![cfg_attr(full, feature(adt_const_params))] | ||
#![cfg_attr(full, allow(incomplete_features))] | ||
|
||
fn a<const X: &'static [u32]>() {} | ||
//[min]~^ ERROR `&'static [u32]` is forbidden as the type of a const generic parameter | ||
|
||
fn main() { | ||
a::<{&[]}>(); | ||
} |
6 changes: 0 additions & 6 deletions
6
src/test/ui/const-generics/min_const_generics/static-reference-array-const-param.rs
This file was deleted.
Oops, something went wrong.