diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-20396.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-20396.rs b/src/test/ui/issues/issue-20396.rs new file mode 100644 index 000000000..4a34f8b38 --- /dev/null +++ b/src/test/ui/issues/issue-20396.rs @@ -0,0 +1,16 @@ +// check-pass +// pretty-expanded FIXME #23616 + +#![allow(dead_code)] + +trait Foo<T> { + fn noop(&self, _: T); +} + +enum Bar<T> { Bla(T) } + +struct Baz<'a> { + inner: dyn for<'b> Foo<Bar<&'b ()>> + 'a, +} + +fn main() {} |