mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
13 lines
213 B
Rust
13 lines
213 B
Rust
// 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() {}
|