1 2 3 4 5 6 7
trait MyTrait { #[doc = MyTrait] //~^ ERROR attribute value must be a literal fn myfun(); } fn main() {}