mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-04-22 07:47:44 +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.
|
To use `alloc` you must implement a global (heap) allocator.
|
||||||
|
|
||||||
```rust,editable
|
```rust,editable,compile_fail
|
||||||
{{#include alloc-example/src/main.rs:Alloc}}
|
{{#include alloc-example/src/main.rs:Alloc}}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# A minimal `no_std` program
|
# A minimal `no_std` program
|
||||||
|
|
||||||
```rust,editable
|
```rust,editable,compile_fail
|
||||||
#![no_main]
|
#![no_main]
|
||||||
#![no_std]
|
#![no_std]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user