rust/tests/ui/wf/issue-96810.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
167 B
Rust
Raw Normal View History

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() {}