With the attribute refactor in rustc, making this case machine applicable is not easily possible anymore. This splits up the tests properly.
12 lines
205 B
Rust
12 lines
205 B
Rust
//@no-rustfix
|
|
|
|
#[cfg_attr(all(), must_use, deprecated)]
|
|
fn issue_12320() {}
|
|
//~^ must_use_unit
|
|
|
|
#[cfg_attr(all(), deprecated, doc = "foo", must_use)]
|
|
fn issue_12320_2() {}
|
|
//~^ must_use_unit
|
|
|
|
fn main() {}
|