Skip to content

Commit accc26a

Browse files
Add test for whitespace in doc alias
1 parent a215151 commit accc26a

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// exact-check
2+
3+
const QUERY = [
4+
'Demon Lord',
5+
];
6+
7+
const EXPECTED = [
8+
{
9+
'others': [
10+
{
11+
'path': 'doc_alias_whitespace',
12+
'name': 'Struct',
13+
'alias': 'Demon Lord',
14+
'href': '../doc_alias_whitespace/struct.Struct.html',
15+
'is_alias': true
16+
},
17+
],
18+
},
19+
];
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#![feature(doc_alias)]
2+
3+
#[doc(alias = "Demon Lord")]
4+
pub struct Struct;

0 commit comments

Comments
 (0)