diff options
Diffstat (limited to 'tests/ui/pub/pub-ident-fn-2.fixed')
-rw-r--r-- | tests/ui/pub/pub-ident-fn-2.fixed | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/pub/pub-ident-fn-2.fixed b/tests/ui/pub/pub-ident-fn-2.fixed new file mode 100644 index 000000000..afd75a41f --- /dev/null +++ b/tests/ui/pub/pub-ident-fn-2.fixed @@ -0,0 +1,10 @@ +// run-rustfix + +pub fn foo(_s: usize) { bar() } +//~^ ERROR missing `fn` for function definition + +fn bar() {} + +fn main() { + foo(2); +} |