Skip to content

Commit 1f6a155

Browse files
committed
Add test for Implementors of exported traits
1 parent 683d1bc commit 1f6a155

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#![crate_name = "unstabled"]
2+
#![feature(staged_api)]
3+
#![unstable(feature = "extremely_unstable", issue = "none")]
4+
5+
#[unstable(feature = "extremely_unstable_foo", issue = "none")]
6+
pub struct Foo {}
7+
8+
#[unstable(feature = "extremely_unstable_foo", issue = "none")]
9+
pub trait Join {}
10+
11+
#[unstable(feature = "extremely_unstable_foo", issue = "none")]
12+
impl Join for Foo {}

src/test/rustdoc/issue-75588.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// aux-build:all_unstable.rs
2+
3+
// Ensure unstably exported traits have their Implementors sections.
4+
5+
#![crate_name = "foo"]
6+
#![feature(extremely_unstable_foo)]
7+
8+
extern crate unstabled;
9+
10+
// @has foo/trait.Join.html '//*[@id="impl-Join-for-Foo"]//code' 'impl Join for Foo'
11+
pub use unstabled::Join;

0 commit comments

Comments
 (0)