main.rs is the code i started to re-write the stack implementation using Rust.
CompilingErrors.txt shows the Compilation error encountered from my Rust code
i need some help
a. to fix the compilation errors mentioned in CompilingErrors.txt
Or
b. Another code/approach for the stack implementation without using "Option" as i did in my code.
Linked lists are a notoriously bad fit for Rust, and implementing linked lists a particularly bad fit for learning Rust. If this is just for learning purposes, my advice is to pick a project that's doesn't inherently involve pointer-based data structures (much less implementing a pointer-based data structure).
If it's for practical purposes, just use push/pop on a Vec instead. (There is a LinkedList in std too, but as even the documentation says, you almost never want to use it.)