diff options
Diffstat (limited to 'tests/ui/query-system/no-query-in-printing-during-query-descr.rs')
-rw-r--r-- | tests/ui/query-system/no-query-in-printing-during-query-descr.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/query-system/no-query-in-printing-during-query-descr.rs b/tests/ui/query-system/no-query-in-printing-during-query-descr.rs new file mode 100644 index 000000000..45b7043e2 --- /dev/null +++ b/tests/ui/query-system/no-query-in-printing-during-query-descr.rs @@ -0,0 +1,6 @@ +fn a() -> _ { + //~^ ERROR the placeholder `_` is not allowed within types on item signatures for return types + &a +} + +fn main() {} |