rust/tests/ui/must_use_unit_unfixable.rs
2025-02-28 23:27:09 +01:00

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