rust/tests/ui/deprecation/deprecated-expr-precedence.rs
Jonathan Brouwer 66b8a9db1f
Update uitests with new unused_attributes warnings
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2025-10-18 21:17:48 +02:00

11 lines
248 B
Rust

//@ check-fail
//@ compile-flags: --crate-type=lib
// Regression test for issue 142649
pub fn public() {
#[deprecated] 0
//~^ ERROR mismatched types
//~| WARN attribute cannot be used on expressions
//~| WARN previously accepted
}