mirror of
https://git.proxmox.com/git/rustc
synced 2026-03-28 19:08:38 +00:00
16 lines
262 B
Rust
16 lines
262 B
Rust
//! Test that we allow unsizing `([Opaque; N],)` to `([Concrete],)`.
|
|
|
|
//@check-pass
|
|
|
|
#![feature(unsized_tuple_coercion)]
|
|
|
|
fn hello() -> ([impl Sized; 2],) {
|
|
if false {
|
|
let x = hello();
|
|
let _: &([i32],) = &x;
|
|
}
|
|
todo!()
|
|
}
|
|
|
|
fn main() {}
|