diff options
Diffstat (limited to 'tests/ui/deprecation/deprecated_main_function.rs')
| -rw-r--r-- | tests/ui/deprecation/deprecated_main_function.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/deprecation/deprecated_main_function.rs b/tests/ui/deprecation/deprecated_main_function.rs new file mode 100644 index 00000000000..398046637d8 --- /dev/null +++ b/tests/ui/deprecation/deprecated_main_function.rs @@ -0,0 +1,5 @@ +//@ run-pass +//@ compile-flags:-Zforce-unstable-if-unmarked + +#[deprecated] // should work even with -Zforce-unstable-if-unmarked +fn main() {} |
