File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12,25 +12,25 @@ Cargoは新たなプロジェクトを作成する際に自動で最新のエデ
1212``` console
1313> cargo +nightly new foo
1414 Created binary (application) `foo` project
15- > cat . \ f oo\ C argo.toml
15+ > cat foo/ Cargo.toml
1616[package]
1717name = "foo"
1818version = "0.1.0"
1919authors = ["your name <you@example.com>"]
20- edition = "2018 "
20+ edition = "2021 "
2121
2222[dependencies]
2323```
2424
2525<!--
26- That `edition = "2018 "` setting will configure your package to use Rust 2018 .
26+ That `edition = "2021 "` setting will configure your package to use Rust 2021 .
2727No more configuration needed!
2828
2929If you'd prefer to use an older edition, you can change the value in that
3030key, for example:
3131-->
3232
33- この ` edition = "2018 " ` によってあなたのパッケージが Rust 2018 を利用するように設定されます。
33+ この ` edition = "2021 " ` によってあなたのパッケージが Rust 2021 を利用するように設定されます。
3434これ以外は必要ありません。
3535
3636もし、他の古いエディションを使いたい場合は、その設定の値を変更できます。例えば、
You can’t perform that action at this time.
0 commit comments