rust/tests/ui/lint/decorate-ice/decorate-can-emit-warnings.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
234 B
Rust
Raw Normal View History

// Checks that the following does not ICE because `decorate` is incorrectly skipped.
//@ compile-flags: -Dunused_must_use -Awarnings --crate-type=lib
#[must_use]
fn f() {}
pub fn g() {
f();
//~^ ERROR unused return value
}