mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
11 lines
209 B
Rust
11 lines
209 B
Rust
#![feature(dyn_star)]
|
|
#![allow(incomplete_features)]
|
|
|
|
use std::fmt::Debug;
|
|
|
|
fn main() {
|
|
let i = [1, 2, 3, 4] as dyn* Debug;
|
|
//~^ ERROR `[i32; 4]` needs to have the same ABI as a pointer
|
|
dbg!(i);
|
|
}
|