rust/tests/ui/consts/promoted_regression.rs
2024-02-16 20:02:50 +00:00

10 lines
237 B
Rust

//@ 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];