summaryrefslogtreecommitdiffstats
path: root/src/test/ui/const-generics/issues/auxiliary/const_generic_issues_lib.rs
blob: 6a10ee267df93eda14f385bb9b39d788f231e708 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![feature(generic_const_exprs)]
#![allow(incomplete_features)]

// All of these three items must be in `lib2` to reproduce the error

pub trait TypeFn {
    type Output;
}

pub struct GenericType<const B: i8>;

// Removing the braces around `42` resolves the crash
impl TypeFn for GenericType<{ 40 + 2 }> {
    type Output = ();
}