diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-12-27 16:37:47 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-27 16:37:47 +0100 |
| commit | d5b975cb7c227b5eec4a83c4651d1225f479c230 (patch) | |
| tree | 5f3159c9dc04e8890e6b2738f7c84e937e14a9f1 | |
| parent | a0bf4f9b721d7f8cb30cda1bd69491c10a1054db (diff) | |
| parent | 66ca5cca6158b512657b905f01cf9bd288870f81 (diff) | |
| download | rust-d5b975cb7c227b5eec4a83c4651d1225f479c230.tar.gz rust-d5b975cb7c227b5eec4a83c4651d1225f479c230.zip | |
Rollup merge of #105994 - JohnTitor:issue-99647, r=compiler-errors
Add regression test for #99647 Closes #99647 r? `@compiler-errors` Signed-off-by: Yuki Okushi <jtitor@2k36.org>
| -rw-r--r-- | src/test/ui/attributes/z-crate-attr.rs (renamed from src/test/ui/z-crate-attr.rs) | 0 | ||||
| -rw-r--r-- | src/test/ui/const-generics/generic_const_exprs/issue-99647.rs | 15 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/z-crate-attr.rs b/src/test/ui/attributes/z-crate-attr.rs index 1021774fc5f..1021774fc5f 100644 --- a/src/test/ui/z-crate-attr.rs +++ b/src/test/ui/attributes/z-crate-attr.rs diff --git a/src/test/ui/const-generics/generic_const_exprs/issue-99647.rs b/src/test/ui/const-generics/generic_const_exprs/issue-99647.rs new file mode 100644 index 00000000000..f797beda8e6 --- /dev/null +++ b/src/test/ui/const-generics/generic_const_exprs/issue-99647.rs @@ -0,0 +1,15 @@ +// edition:2018 +// run-pass + +#![allow(incomplete_features)] +#![feature(generic_const_exprs)] + +#[allow(unused)] +async fn foo<'a>() { + let _data = &mut [0u8; { 1 + 4 }]; + bar().await +} + +async fn bar() {} + +fn main() {} |
