about summary refs log tree commit diff
path: root/tests/ui/deprecation/deprecated_main_function.rs
diff options
context:
space:
mode:
authorJana Dönszelmann <jonathan@donsz.nl>2025-06-25 22:14:54 +0200
committerGitHub <noreply@github.com>2025-06-25 22:14:54 +0200
commit131a2e47fbc107a7649c18ba46a751a43e72c5cf (patch)
tree6b8fc550fbd9e916f2b880bf5b73e344ba91d666 /tests/ui/deprecation/deprecated_main_function.rs
parent88259979a73dc7b1c575ee3d8d90f3d1aeff1a33 (diff)
parent793607059bcd49cbafc3d75f8438b496cd793970 (diff)
downloadrust-131a2e47fbc107a7649c18ba46a751a43e72c5cf.tar.gz
rust-131a2e47fbc107a7649c18ba46a751a43e72c5cf.zip
Rollup merge of #142200 - Kivooeo:tf8, r=jieyouxu
`tests/ui`: A New Order [8/N]

Some `tests/ui/` housekeeping, to trim down number of tests directly under `tests/ui/`. Part of rust-lang/rust#133895.
Diffstat (limited to 'tests/ui/deprecation/deprecated_main_function.rs')
-rw-r--r--tests/ui/deprecation/deprecated_main_function.rs5
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() {}