mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
9 lines
169 B
Rust
9 lines
169 B
Rust
//@ edition: 2021
|
|
//@ run-pass
|
|
#![allow(incomplete_features)]
|
|
#![feature(ref_pat_eat_one_layer_2024)]
|
|
|
|
fn main() {
|
|
let &[[x]] = &[&mut [42]];
|
|
let _: &i32 = x;
|
|
}
|