2022-11-12 16:27:18 -06:00
|
|
|
#![feature(dyn_star)]
|
|
|
|
#![allow(incomplete_features)]
|
|
|
|
|
|
|
|
use std::fmt::Debug;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let i = [1, 2, 3, 4] as dyn* Debug;
|
2023-03-20 15:53:43 -05:00
|
|
|
//~^ ERROR `[i32; 4]` needs to have the same ABI as a pointer
|
2022-11-12 16:27:18 -06:00
|
|
|
dbg!(i);
|
|
|
|
}
|