diff options
Diffstat (limited to 'tests/ui/impl-trait/issue-103599.rs')
-rw-r--r-- | tests/ui/impl-trait/issue-103599.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/impl-trait/issue-103599.rs b/tests/ui/impl-trait/issue-103599.rs new file mode 100644 index 000000000..043ae67f2 --- /dev/null +++ b/tests/ui/impl-trait/issue-103599.rs @@ -0,0 +1,10 @@ +// check-pass + +trait T {} + +fn wrap(x: impl T) -> impl T { + //~^ WARN function cannot return without recursing + wrap(wrap(x)) +} + +fn main() {} |