about summary refs log tree commit diff
path: root/tests/crashes/140123-2.rs
blob: 6ed10b9dcc34a3aac88dfc2fa7ff21802b34c1d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ 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 []
}