mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00
13 lines
226 B
Rust
13 lines
226 B
Rust
//@ known-bug: #140123
|
|
//@ compile-flags: --crate-type lib
|
|
|
|
trait Trait {}
|
|
|
|
impl Trait for [(); 0] {}
|
|
|
|
const ICE: [&mut dyn Trait; 2] = [const { empty_mut() }; 2];
|
|
|
|
const fn empty_mut() -> &'static mut [(); 0] {
|
|
&mut []
|
|
}
|