Files
rust/tests/ui/must_use_unit_unfixable.rs
Philipp Krones 28555d1231 Split must_use_unit test into an unfixable part
With the attribute refactor in rustc, making this case machine applicable is not
easily possible anymore. This splits up the tests properly.
2025-02-27 21:51:42 +01:00

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() {}