about summary refs log tree commit diff
path: root/tests/ui/generics/overlapping-errors-span-issue-123861.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/generics/overlapping-errors-span-issue-123861.rs')
-rw-r--r--tests/ui/generics/overlapping-errors-span-issue-123861.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/generics/overlapping-errors-span-issue-123861.rs b/tests/ui/generics/overlapping-errors-span-issue-123861.rs
new file mode 100644
index 00000000000..e0a27f68748
--- /dev/null
+++ b/tests/ui/generics/overlapping-errors-span-issue-123861.rs
@@ -0,0 +1,8 @@
+fn mainIterator<_ = _> {}
+//~^ ERROR expected identifier, found reserved identifier `_`
+//~| ERROR   missing parameters for function definition
+//~| ERROR   defaults for type parameters are only allowed in `struct`, `enum`, `type`, or `trait` definitions [invalid_type_param_default]
+//~| WARNING this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
+//~| ERROR   the placeholder `_` is not allowed within types on item signatures for functions [E0121]
+
+fn main() {}