mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
11 lines
191 B
Rust
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() {}
|