Files
SteelSaga/src/lib.rs
Wesley Irvin 6f2517c830 Create Item
Definition of an item struct.
2023-11-19 15:05:47 -05:00

19 lines
301 B
Rust

use std::error::Error;
mod item;
use item::Item;
pub fn run() -> Result<(), Box<dyn Error>> {
let item = Item {
name: String::from("Test Item"),
value: 300,
};
println!(
"This item is {} and it's value is {}.",
item.name, item.value
);
Ok(())
}