mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 21:47:15 +03:00
35 lines
557 B
Rust
35 lines
557 B
Rust
#![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() {}
|