Closed
Description
I have a no_std crate that imports std when testing:
#![no_std]
#![feature(alloc)]
extern crate alloc;
#[cfg(test)]
#[macro_use]
extern crate std;
However, I get this error during testing:
error: no global memory allocator found but one is required; link to std or add #[global_allocator] t
o a static item that implements the GlobalAlloc trait.
Allocating on the heap during testing does appear to work, so I'm assuming this is just a case of the warning still being emitted.