diff options
Diffstat (limited to 'tests/ui/query-system/fn-sig-cycle-arity.rs')
| -rw-r--r-- | tests/ui/query-system/fn-sig-cycle-arity.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/query-system/fn-sig-cycle-arity.rs b/tests/ui/query-system/fn-sig-cycle-arity.rs new file mode 100644 index 00000000000..7a9b8469c9e --- /dev/null +++ b/tests/ui/query-system/fn-sig-cycle-arity.rs @@ -0,0 +1,8 @@ +trait Dancer { + fn dance(&self) -> _ { + //~^ ERROR the placeholder `_` is not allowed within types on item signatures for return types + self.dance() + } +} + +fn main() {} |
