mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-01-20 21:18:26 +02:00
no_std examples won't build in mdbook test.
This commit is contained in:
parent
8e009b9674
commit
d84c93010a
@ -2,7 +2,7 @@
|
||||
|
||||
To use `alloc` you must implement a global (heap) allocator.
|
||||
|
||||
```rust,editable
|
||||
```rust,editable,compile_fail
|
||||
{{#include alloc-example/src/main.rs:Alloc}}
|
||||
```
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
# A minimal `no_std` program
|
||||
|
||||
```rust,editable
|
||||
```rust,editable,compile_fail
|
||||
#![no_main]
|
||||
#![no_std]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user