]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/promoted_regression.rs
Rollup merge of #106962 - compiler-errors:use-sugg-span, r=oli-obk
[rust.git] / tests / ui / consts / promoted_regression.rs
1 // build-pass (FIXME(62277): could be check-pass?)
2
3 fn main() {
4     let _ = &[("", ""); 3];
5 }
6
7 const FOO: &[(&str, &str)] = &[("", ""); 3];
8 const BAR: &[(&str, &str); 5] = &[("", ""); 5];
9 const BAA: &[[&str; 12]; 11] = &[[""; 12]; 11];