From 6887202ea3a1d3e3df0c88c07c754defd87b9712 Mon Sep 17 00:00:00 2001 From: mitaa Date: Mon, 25 Apr 2016 17:20:32 +0200 Subject: Make some fatal lexer errors recoverable --- src/test/rustdoc/issue-12834.rs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/test/rustdoc/issue-12834.rs (limited to 'src/test/rustdoc') 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 or the MIT license +// , 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() {} -- cgit 1.4.1-3-g733a5