rust/tests/ui/did_you_mean/brackets-to-braces-single-element.rs
2023-01-11 09:32:08 +00:00

11 lines
191 B
Rust

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() {}