mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-20 19:47:33 +00:00
15 lines
291 B
Rust
15 lines
291 B
Rust
![]() |
//! Test that we do not allow unsizing `([Opaque; N],)` to `([Concrete],)`.
|
||
|
|
||
|
#![feature(unsized_tuple_coercion)]
|
||
|
|
||
|
fn hello() -> ([impl Sized; 2],) {
|
||
|
if false {
|
||
|
let x = hello();
|
||
|
let _: &([i32],) = &x;
|
||
|
//~^ ERROR: mismatched types
|
||
|
}
|
||
|
todo!()
|
||
|
}
|
||
|
|
||
|
fn main() {}
|