2020-08-01 09:22:20 -05:00
|
|
|
#![crate_type = "lib"]
|
|
|
|
#![feature(doc_alias)]
|
|
|
|
|
|
|
|
#[doc(alias = "foo")] // ok!
|
|
|
|
pub struct Bar;
|
|
|
|
|
|
|
|
#[doc(alias)] //~ ERROR
|
|
|
|
#[doc(alias = 0)] //~ ERROR
|
|
|
|
#[doc(alias("bar"))] //~ ERROR
|
2020-09-16 09:42:06 -05:00
|
|
|
#[doc(alias = "\"")] //~ ERROR
|
|
|
|
#[doc(alias = "\n")] //~ ERROR
|
|
|
|
#[doc(alias = "
|
|
|
|
")] //~^ ERROR
|
|
|
|
#[doc(alias = "\t")] //~ ERROR
|
2020-08-01 09:22:20 -05:00
|
|
|
pub struct Foo;
|