summary refs log tree commit diff
path: root/tests/crashes/131101.rs
blob: 3ec441101b7d9cad1d3426a5cf50d18dddfb35c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ known-bug: #131101
trait Foo<const N: u8> {
    fn do_x(&self) -> [u8; N];
}

struct Bar;

impl Foo<const 3> for Bar {
    fn do_x(&self) -> [u8; 3] {
        [0u8; 3]
    }
}