summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/promoted_regression.rs
blob: d57036ae58f35b64aeddd462a174228c938edec4 (plain)
1
2
3
4
5
6
7
8
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];