diff options
author | Martin Fischer <martin@push-f.com> | 2021-11-25 13:37:04 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-11-25 13:40:30 +0100 |
commit | ccb8e0cd6a94f71262e85e99fcd421578d2fb393 (patch) | |
tree | 600344b376773ebbf0c76751d12cff5ae8d32e70 /ui-tests/src/bin | |
parent | 88f33dee26815c3382bfb18c800f3f54b6397e20 (diff) |
add ui-test for qualified associated types
Diffstat (limited to 'ui-tests/src/bin')
-rw-r--r-- | ui-tests/src/bin/qualified_assoc_type.rs | 12 | ||||
-rw-r--r-- | ui-tests/src/bin/qualified_assoc_type.stderr | 5 |
2 files changed, 17 insertions, 0 deletions
diff --git a/ui-tests/src/bin/qualified_assoc_type.rs b/ui-tests/src/bin/qualified_assoc_type.rs new file mode 100644 index 0000000..24a4791 --- /dev/null +++ b/ui-tests/src/bin/qualified_assoc_type.rs @@ -0,0 +1,12 @@ +trait Foo { + type B; +} + +#[dynamize::dynamize] +trait Bar { + type A: Foo; + + fn test(&self) -> <Self::A as Foo>::B; +} + +fn main() {} diff --git a/ui-tests/src/bin/qualified_assoc_type.stderr b/ui-tests/src/bin/qualified_assoc_type.stderr new file mode 100644 index 0000000..4f69ece --- /dev/null +++ b/ui-tests/src/bin/qualified_assoc_type.stderr @@ -0,0 +1,5 @@ +error: dynamize does not support associated types of a qualified Self + --> src/bin/qualified_assoc_type.rs:9:24 + | +9 | fn test(&self) -> <Self::A as Foo>::B; + | ^^^^ |