diff options
| author | Philip Munksgaard <pmunksgaard@gmail.com> | 2018-09-18 11:44:28 +0200 |
|---|---|---|
| committer | Philip Munksgaard <pmunksgaard@gmail.com> | 2018-09-20 08:36:07 +0200 |
| commit | ac8d8d71fac1225a35d4895f1f97dd14bc6a4ea2 (patch) | |
| tree | d513af1192d63dfcf696c6b4b15940eb5cc5311b /src/doc | |
| parent | c996c4d316ce9023c3ef296a583e0c8bf7ce5880 (diff) | |
| download | rust-ac8d8d71fac1225a35d4895f1f97dd14bc6a4ea2.tar.gz rust-ac8d8d71fac1225a35d4895f1f97dd14bc6a4ea2.zip | |
Add test for doctest edition support
Diffstat (limited to 'src/doc')
| -rw-r--r-- | src/doc/unstable-book/src/language-features/try-blocks.md | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/doc/unstable-book/src/language-features/try-blocks.md b/src/doc/unstable-book/src/language-features/try-blocks.md index 866b37a39a7..e342c260a73 100644 --- a/src/doc/unstable-book/src/language-features/try-blocks.md +++ b/src/doc/unstable-book/src/language-features/try-blocks.md @@ -9,9 +9,7 @@ The tracking issue for this feature is: [#31436] The `try_blocks` feature adds support for `try` blocks. A `try` block creates a new scope one can use the `?` operator in. -```rust,ignore -// This code needs the 2018 edition - +```rust,edition2018 #![feature(try_blocks)] use std::num::ParseIntError; |
