diff options
Diffstat (limited to 'tests/ui/wf/issue-96810.rs')
-rw-r--r-- | tests/ui/wf/issue-96810.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/wf/issue-96810.rs b/tests/ui/wf/issue-96810.rs new file mode 100644 index 000000000..c2948086b --- /dev/null +++ b/tests/ui/wf/issue-96810.rs @@ -0,0 +1,12 @@ +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() {} |