Add test for whitespace in doc alias

This commit is contained in:
Guillaume Gomez 2020-10-05 14:00:12 +02:00
parent a215151cd3
commit accc26abc0
2 changed files with 23 additions and 0 deletions

View 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
},
],
},
];

View file

@ -0,0 +1,4 @@
#![feature(doc_alias)]
#[doc(alias = "Demon Lord")]
pub struct Struct;