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