From 1efcde5de01880b5d0cd45bdaca699c0727f5976 Mon Sep 17 00:00:00 2001 From: Oliver Middleton Date: Thu, 23 Jun 2016 23:17:35 +0100 Subject: rustdoc: Fix panic caused by doc(hidden) trait methods --- src/test/rustdoc/issue-34423.rs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/test/rustdoc/issue-34423.rs (limited to 'src/test') diff --git a/src/test/rustdoc/issue-34423.rs b/src/test/rustdoc/issue-34423.rs new file mode 100644 index 00000000000..460462d8a66 --- /dev/null +++ b/src/test/rustdoc/issue-34423.rs @@ -0,0 +1,20 @@ +// 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. + +pub struct Foo; + +pub trait Bar { + #[doc(hidden)] + fn bar() {} +} + +impl Bar for Foo { + fn bar() {} +} -- cgit 1.4.1-3-g733a5