diff options
Diffstat (limited to 'tests/ui/duplicate/duplicate-parameter.rs')
-rw-r--r-- | tests/ui/duplicate/duplicate-parameter.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/duplicate/duplicate-parameter.rs b/tests/ui/duplicate/duplicate-parameter.rs new file mode 100644 index 000000000..e5b21bbcd --- /dev/null +++ b/tests/ui/duplicate/duplicate-parameter.rs @@ -0,0 +1,5 @@ +fn f(a: isize, a: isize) {} +//~^ ERROR identifier `a` is bound more than once in this parameter list + +fn main() { +} |