File tree 2 files changed +7
-5
lines changed
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
- language : rust
1
+ language : shell
2
2
3
- rust :
4
- - nightly
3
+ before_install :
4
+ - curl -sSL https://sh.rustup.rs | sh -s -- -y --default-toolchain=nightly --profile=minimal -c rust-docs
5
+ - export PATH="$HOME/.cargo/bin:$PATH"
5
6
6
7
install :
7
8
- travis_retry curl -Lf https://github.com/rust-lang-nursery/mdBook/releases/download/v0.3.1/mdbook-v0.3.1-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=$HOME/.cargo/bin
Original file line number Diff line number Diff line change @@ -92,10 +92,11 @@ attributes may give meaning to it.
92
92
This example shows using a custom derive attribute to modify the meaning of a
93
93
generic parameter.
94
94
95
- ``` ignore
95
+ ``` rust, ignore
96
96
// Assume that the derive for MyFlexibleClone declared `my_flexible_clone` as
97
97
// an attribute it understands.
98
- #[derive(MyFlexibleClone)] struct Foo<#[my_flexible_clone(unbounded)] H> {
98
+ #[derive(MyFlexibleClone)]
99
+ struct Foo<#[my_flexible_clone(unbounded)] H> {
99
100
a: *const H
100
101
}
101
102
```
You can’t perform that action at this time.
0 commit comments