From 69a68b10a12af3f85842eeb7586e62ff780f2f5f Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Tue, 2 Jun 2020 19:29:59 +0200 Subject: Add rust track --- rust/hello-world/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 rust/hello-world/src/lib.rs (limited to 'rust/hello-world/src/lib.rs') diff --git a/rust/hello-world/src/lib.rs b/rust/hello-world/src/lib.rs new file mode 100644 index 0000000..f147ab7 --- /dev/null +++ b/rust/hello-world/src/lib.rs @@ -0,0 +1,5 @@ +// The &'static here means the return type has a static lifetime. +// This is a Rust feature that you don't need to worry about now. +pub fn hello() -> &'static str { + "Goodbye, World!" +} -- cgit v1.2.3