blob: 937b8bcb6305785ca14706a7beae97dae48ad970 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
trait Bar<const N: usize> {}
trait Foo<const N: usize> {
type Assoc: Bar<N>;
}
impl Bar<3> for u16 {}
impl<const N: usize> Foo<N> for i16 {
type Assoc = u16; //~ ERROR the trait bound `u16: Bar<N>`
}
fn main() {}
|