diff options
Diffstat (limited to 'samples/rust/hostprogs/a.rs')
-rw-r--r-- | samples/rust/hostprogs/a.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/samples/rust/hostprogs/a.rs b/samples/rust/hostprogs/a.rs new file mode 100644 index 000000000..f7a4a3d0f --- /dev/null +++ b/samples/rust/hostprogs/a.rs @@ -0,0 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0 + +//! Rust single host program sample: module `a`. + +pub(crate) fn f(x: i32) { + println!("The number is {}.", x); +} |