rust/tests/ui/impl-trait/unsize_tuple.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
262 B
Rust
Raw Normal View History

//! Test that we allow unsizing `([Opaque; N],)` to `([Concrete],)`.
//@check-pass
2024-05-23 10:46:56 -05:00
#![feature(unsized_tuple_coercion)]
fn hello() -> ([impl Sized; 2],) {
if false {
let x = hello();
let _: &([i32],) = &x;
}
todo!()
}
fn main() {}