File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1- language : rust
1+ language : shell
22
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"
56
67install :
78 - 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.
9292This example shows using a custom derive attribute to modify the meaning of a
9393generic parameter.
9494
95- ``` ignore
95+ ``` rust, ignore
9696// Assume that the derive for MyFlexibleClone declared `my_flexible_clone` as
9797// 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> {
99100 a: *const H
100101}
101102```
You can’t perform that action at this time.
0 commit comments