I am working on a project that uses #![no_std], and I would like to be able to derive useful traits such as Copy and Clone. I tried adding pub use core::prelude::*; to both the project root, and the file I actually want to use it in. However, any attempts to #[derive(Copy)] results in
error: attempt to implement a nonexistent trait std::marker::Copy
I don't understand what I'm doing wrong. Attempting to add
use core::marker::Copy
yields this:
error: a type named Copy has already been imported in this module