2020-08-01 14:22:20 +00:00
|
|
|
#![crate_type = "lib"]
|
|
|
|
|
|
|
|
#[doc(alias = "foo")] // ok!
|
2021-03-06 20:59:26 +00:00
|
|
|
#[doc(alias("bar", "baz"))] // ok!
|
2020-08-01 14:22:20 +00:00
|
|
|
pub struct Bar;
|
|
|
|
|
|
|
|
#[doc(alias)] //~ ERROR
|
|
|
|
#[doc(alias = 0)] //~ ERROR
|
2020-09-16 14:42:06 +00:00
|
|
|
#[doc(alias = "\"")] //~ ERROR
|
|
|
|
#[doc(alias = "\n")] //~ ERROR
|
|
|
|
#[doc(alias = "
|
|
|
|
")] //~^ ERROR
|
|
|
|
#[doc(alias = "\t")] //~ ERROR
|
2020-10-06 12:29:42 +00:00
|
|
|
#[doc(alias = " hello")] //~ ERROR
|
|
|
|
#[doc(alias = "hello ")] //~ ERROR
|
2021-03-06 20:59:26 +00:00
|
|
|
#[doc(alias = "")] //~ ERROR
|
2020-08-01 14:22:20 +00:00
|
|
|
pub struct Foo;
|
2021-03-06 20:59:26 +00:00
|
|
|
|
|
|
|
#[doc(alias(0))] //~ ERROR
|
|
|
|
#[doc(alias("\""))] //~ ERROR
|
|
|
|
#[doc(alias("\n"))] //~ ERROR
|
|
|
|
#[doc(alias("
|
|
|
|
"))] //~^ ERROR
|
|
|
|
#[doc(alias("\t"))] //~ ERROR
|
|
|
|
#[doc(alias(" hello"))] //~ ERROR
|
|
|
|
#[doc(alias("hello "))] //~ ERROR
|
|
|
|
#[doc(alias(""))] //~ ERROR
|
|
|
|
pub struct Foo2;
|