mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
13 lines
167 B
Rust
13 lines
167 B
Rust
struct S<T: Tr>(T::Assoc);
|
|
|
|
trait Tr {
|
|
type Assoc;
|
|
}
|
|
|
|
struct Hoge<K> {
|
|
s: S<K>, //~ ERROR the trait bound `K: Tr` is not satisfied
|
|
a: u32,
|
|
}
|
|
|
|
fn main() {}
|