summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0061.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/error-codes/E0061.rs')
-rw-r--r--tests/ui/error-codes/E0061.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/error-codes/E0061.rs b/tests/ui/error-codes/E0061.rs
new file mode 100644
index 000000000..b6fae6c63
--- /dev/null
+++ b/tests/ui/error-codes/E0061.rs
@@ -0,0 +1,11 @@
+fn f(a: u16, b: &str) {}
+
+fn f2(a: u16) {}
+
+fn main() {
+ f(0);
+ //~^ ERROR E0061
+
+ f2();
+ //~^ ERROR E0061
+}