From 5cbf9aedb806af63cc6ad80b19e598c2e0a10629 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Tue, 20 Feb 2018 20:30:29 +0100 Subject: Fix rustdoc test ICE --- src/test/rustdoc/issue-48377.rs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/test/rustdoc/issue-48377.rs (limited to 'src/test/rustdoc') diff --git a/src/test/rustdoc/issue-48377.rs b/src/test/rustdoc/issue-48377.rs new file mode 100644 index 00000000000..d098b1a5b02 --- /dev/null +++ b/src/test/rustdoc/issue-48377.rs @@ -0,0 +1,23 @@ +// Copyright 2018 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. + +// compile-flags:--test + +//! This is a doc comment +//! +//! ```rust +//! fn main() {} +//! ``` +//! +//! With a trailing code fence +//! ``` + +/// Some foo function +pub fn foo() {} -- cgit 1.4.1-3-g733a5