mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Add test for whitespace in doc alias
This commit is contained in:
parent
a215151cd3
commit
accc26abc0
19
src/test/rustdoc-js/doc-alias-whitespace.js
Normal file
19
src/test/rustdoc-js/doc-alias-whitespace.js
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
// exact-check
|
||||||
|
|
||||||
|
const QUERY = [
|
||||||
|
'Demon Lord',
|
||||||
|
];
|
||||||
|
|
||||||
|
const EXPECTED = [
|
||||||
|
{
|
||||||
|
'others': [
|
||||||
|
{
|
||||||
|
'path': 'doc_alias_whitespace',
|
||||||
|
'name': 'Struct',
|
||||||
|
'alias': 'Demon Lord',
|
||||||
|
'href': '../doc_alias_whitespace/struct.Struct.html',
|
||||||
|
'is_alias': true
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
];
|
4
src/test/rustdoc-js/doc-alias-whitespace.rs
Normal file
4
src/test/rustdoc-js/doc-alias-whitespace.rs
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#![feature(doc_alias)]
|
||||||
|
|
||||||
|
#[doc(alias = "Demon Lord")]
|
||||||
|
pub struct Struct;
|
Loading…
Reference in New Issue
Block a user