diff options
| author | mitaa <mitaa.ceb@gmail.com> | 2016-04-25 17:20:32 +0200 |
|---|---|---|
| committer | mitaa <mitaa.ceb@gmail.com> | 2016-04-27 20:48:18 +0200 |
| commit | 6887202ea3a1d3e3df0c88c07c754defd87b9712 (patch) | |
| tree | 8482535a9f58e567728140d8be863f1add112ef8 /src/test/rustdoc | |
| parent | 645dd013ac6b334ab5bf7a7240c2243f4bb590c9 (diff) | |
| download | rust-6887202ea3a1d3e3df0c88c07c754defd87b9712.tar.gz rust-6887202ea3a1d3e3df0c88c07c754defd87b9712.zip | |
Make some fatal lexer errors recoverable
Diffstat (limited to 'src/test/rustdoc')
| -rw-r--r-- | src/test/rustdoc/issue-12834.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/test/rustdoc/issue-12834.rs b/src/test/rustdoc/issue-12834.rs new file mode 100644 index 00000000000..30dce27e738 --- /dev/null +++ b/src/test/rustdoc/issue-12834.rs @@ -0,0 +1,21 @@ +// Copyright 2016 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +// Tests that failing to syntax highlight a rust code-block doesn't cause +// rustdoc to fail, while still rendering the code-block (without highlighting). + + +// @has issue_12834/fn.foo.html +// @has - //pre 'a + b ' + +/// ``` +/// a + b ∈ Self ∀ a, b ∈ Self +/// ``` +pub fn foo() {} |
