diff options
| author | QuietMisdreavus <grey@quietmisdreavus.net> | 2018-02-21 19:58:20 -0600 |
|---|---|---|
| committer | QuietMisdreavus <grey@quietmisdreavus.net> | 2018-02-21 19:58:20 -0600 |
| commit | 8872e7b593e0e7a6c5fdf519beb878b74be994e8 (patch) | |
| tree | 8fb81695a57fa2884b0f0494e13ecb713d178102 | |
| parent | bca3b31ab94c49ff32758690a0eeed29fe87ccf5 (diff) | |
| download | rust-8872e7b593e0e7a6c5fdf519beb878b74be994e8.tar.gz rust-8872e7b593e0e7a6c5fdf519beb878b74be994e8.zip | |
add test for issue 48414 ICE
| -rw-r--r-- | src/test/rustdoc/auxiliary/issue-48414.rs | 15 | ||||
| -rw-r--r-- | src/test/rustdoc/issue-48414.rs | 21 |
2 files changed, 36 insertions, 0 deletions
diff --git a/src/test/rustdoc/auxiliary/issue-48414.rs b/src/test/rustdoc/auxiliary/issue-48414.rs new file mode 100644 index 00000000000..7e0edf76f6a --- /dev/null +++ b/src/test/rustdoc/auxiliary/issue-48414.rs @@ -0,0 +1,15 @@ +// Copyright 2015 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. + +/// Woah, this trait links to [OtherTrait](OtherTrait)! +pub trait SomeTrait {} + +/// Woah, this trait links to [SomeTrait](SomeTrait)! +pub trait OtherTrait {} diff --git a/src/test/rustdoc/issue-48414.rs b/src/test/rustdoc/issue-48414.rs new file mode 100644 index 00000000000..0136f9c4759 --- /dev/null +++ b/src/test/rustdoc/issue-48414.rs @@ -0,0 +1,21 @@ +// Copyright 2015 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. + +// aux-build:issue-48414.rs + +// ICE when resolving paths for a trait that linked to another trait, when both were in an external +// crate + +#![crate_name = "base"] + +extern crate issue_48414; + +#[doc(inline)] +pub use issue_48414::{SomeTrait, OtherTrait}; |
