跳转到主要内容

Rust Playground

Choose a starting scenario and write any Rust snippet. The sandbox is free: there is nothing to validate. To actually compile and run the code, a click on Open in Rust Playground copies the code to the clipboard and opens play.rust-lang.org in a new tab — paste it with Ctrl/Cmd+V to inspect the output and run tests.

正在加载编辑器...

提示:Ctrl/Cmd + Enter 复制并打开 Playground。