Skip to content

Commit 6532a08

Browse files
committed
rustdoc: Add test for #27759
1 parent 3dc0297 commit 6532a08

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

src/test/rustdoc/issue-27759.rs

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
11+
#![feature(staged_api)]
12+
#![staged_api]
13+
#![doc(issue_tracker_base_url = "http://issue_url/")]
14+
15+
// @has issue_27759/unstable/index.html
16+
// @has - '<code>test</code>'
17+
// @has - '<a href="http://issue_url/27759">#27759</a>'
18+
#[unstable(feature="test", issue="27759")]
19+
pub mod unstable {
20+
// @has issue_27759/unstable/fn.issue.html
21+
// @has - '<code>test_function</code>'
22+
// @has - '<a href="http://issue_url/1234567890">#1234567890</a>'
23+
#[unstable(feature="test_function", issue="1234567890")]
24+
pub fn issue() {}
25+
}

0 commit comments

Comments
 (0)