summaryrefslogtreecommitdiffstats
path: root/src/test/ui/const-generics/issues/issue-92186.rs
blob: 9ced4667d249a887cc3ade7507d4e368a1098eec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// check-pass

#![feature(generic_const_exprs)]
#![allow(incomplete_features)]

pub struct Foo<const N: usize>;
pub trait Bar<T> {}

impl<T> Bar<T> for Foo<{ 1 }> {}
impl<T> Bar<T> for Foo<{ 2 }> {}

fn main() {}