summaryrefslogtreecommitdiff
path: root/test-project/src/rustfmt-default.rs
diff options
context:
space:
mode:
authorapiraino <apiraino@users.noreply.github.com>2025-06-18 22:40:54 +0200
committerapiraino <apiraino@users.noreply.github.com>2025-06-20 09:48:54 +0200
commitf2c0802b3325ca07681e8b5745690127a68cc037 (patch)
tree92b66dcef473a9ef7fd8d14b208f799d68a0a859 /test-project/src/rustfmt-default.rs
parent0d5d54a19e89f9012f3fa84174f562ab18cebb96 (diff)
downloadrust-mode-f2c0802b3325ca07681e8b5745690127a68cc037.tar.gz
Ensure rustfmt is invoked without edition parameter
Diffstat (limited to 'test-project/src/rustfmt-default.rs')
-rw-r--r--test-project/src/rustfmt-default.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/test-project/src/rustfmt-default.rs b/test-project/src/rustfmt-default.rs
new file mode 100644
index 0000000..3138c9c
--- /dev/null
+++ b/test-project/src/rustfmt-default.rs
@@ -0,0 +1,5 @@
+// this file ensures that by default rustfmt is invoked without parameters
+// and formats with its default (--edition=2015 as of today)
+
+// With --edition=2024 this import will be reordered
+use std::{i16, i8};