2024-02-16 20:02:50 +00:00
|
|
|
//@ check-pass
|
2022-01-11 20:25:57 +01:00
|
|
|
|
|
|
|
|
#![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() {}
|