diff options
Diffstat (limited to 'tests/ui/consts/promoted_regression.rs')
-rw-r--r-- | tests/ui/consts/promoted_regression.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/consts/promoted_regression.rs b/tests/ui/consts/promoted_regression.rs new file mode 100644 index 000000000..d57036ae5 --- /dev/null +++ b/tests/ui/consts/promoted_regression.rs @@ -0,0 +1,9 @@ +// build-pass (FIXME(62277): could be check-pass?) + +fn main() { + let _ = &[("", ""); 3]; +} + +const FOO: &[(&str, &str)] = &[("", ""); 3]; +const BAR: &[(&str, &str); 5] = &[("", ""); 5]; +const BAA: &[[&str; 12]; 11] = &[[""; 12]; 11]; |