diff options
Diffstat (limited to 'tests/ui/sized/recursive-type-1.rs')
-rw-r--r-- | tests/ui/sized/recursive-type-1.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/sized/recursive-type-1.rs b/tests/ui/sized/recursive-type-1.rs new file mode 100644 index 000000000..cd6805967 --- /dev/null +++ b/tests/ui/sized/recursive-type-1.rs @@ -0,0 +1,10 @@ +// check-pass +trait A { type Assoc; } + +impl A for () { + // FIXME: it would be nice for this to at least cause a warning. + type Assoc = Foo<()>; +} +struct Foo<T: A>(T::Assoc); + +fn main() {} |