mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-01 04:08:04 -06:00
8 lines
188 B
Rust
8 lines
188 B
Rust
// Type your code here, or load an example.
|
|
pub fn square(num: i32) -> i32 {
|
|
num * num
|
|
}
|
|
|
|
// If you use `main()`, declare it as `pub` to see it in the output:
|
|
// pub fn main() { ... }
|