13 lines
242 B
Rust
13 lines
242 B
Rust
//! Test that we do not allow unsizing `[Opaque; N]` to `[Concrete]`.
|
|
|
|
fn hello() -> [impl Sized; 2] {
|
|
if false {
|
|
let x = hello();
|
|
let _: &[i32] = &x;
|
|
//~^ ERROR: mismatched types
|
|
}
|
|
todo!()
|
|
}
|
|
|
|
fn main() {}
|