diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-23543.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-23543.rs b/src/test/ui/issues/issue-23543.rs new file mode 100644 index 000000000..843e1a8a8 --- /dev/null +++ b/src/test/ui/issues/issue-23543.rs @@ -0,0 +1,11 @@ +pub trait A: Copy {} + +struct Foo; + +pub trait D { + fn f<T>(self) + where T<Bogus = Foo>: A; + //~^ ERROR associated type bindings are not allowed here [E0229] +} + +fn main() {} |