diff options
Diffstat (limited to 'src/test/ui/parser/fn-defined-using-func.rs')
-rw-r--r-- | src/test/ui/parser/fn-defined-using-func.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/test/ui/parser/fn-defined-using-func.rs b/src/test/ui/parser/fn-defined-using-func.rs deleted file mode 100644 index 2dce96fdc..000000000 --- a/src/test/ui/parser/fn-defined-using-func.rs +++ /dev/null @@ -1,10 +0,0 @@ -// Check what happens when `func` is used to define a function, instead of `fn` -// edition:2021 - -#![allow(dead_code)] - -func foo() {} -//~^ ERROR expected one of `!` or `::`, found `foo` -//~^^ HELP write `fn` instead of `func` to declare a function - -fn main() {} |