This commit is contained in:
Philipp Oppermann
2020-01-10 13:09:31 +01:00
parent 231b5d587b
commit 14c0cc7ece

View File

@@ -210,7 +210,7 @@ With the help of the `spin::Mutex` wrapper type we can implement the `GlobalAllo
unsafe impl GlobalAlloc for spin::Mutex<BumpAllocator> {}
```
Unfortunatly, this still doesn't work because the Rust compiler does not permit trait implementations for types defined in other crates:
Unfortunately, this still doesn't work because the Rust compiler does not permit trait implementations for types defined in other crates:
```
error[E0117]: only traits defined in the current crate can be implemented for arbitrary types