rust/tests/ui/consts/promoted_regression.rs
2023-01-11 09:32:08 +00:00

10 lines
236 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];