blob: 761d83966f6597f19c3b4a8fa87fc95ec304ba26 [file] [edit]
#![feature(where_clause_attrs)]
#![allow(invalid_doc_attributes)]
fn test()
where
#[doc(alias = ":(")]
//~^ ERROR most attributes are not supported in `where` clauses
//~| ERROR `#[doc(alias = "...")]` isn't allowed on where predicate
():,
#[doc(hidden)]
//~^ ERROR most attributes are not supported in `where` clauses
():,
#[doc = ""]
//~^ ERROR most attributes are not supported in `where` clauses
():,
// == That the doc attributes below don't trigger the error is a bug
#[doc()]
():,
#[doc(5)]
():,
#[doc]
():,
#[doc = 5]
():,
{ }
fn main() {}