summaryrefslogtreecommitdiffstats
path: root/tests/ui/did_you_mean/brackets-to-braces-single-element.rs
blob: 4d0109767fc0f245813c943456d311869a639bb6 (plain)
1
2
3
4
5
6
7
8
9
10
const A: [&str; 1] = { "hello" };
//~^ ERROR mismatched types

const B: &[u32] = &{ 1 };
//~^ ERROR mismatched types

const C: &&[u32; 1] = &&{ 1 };
//~^ ERROR mismatched types

fn main() {}