Sign in
rust
/
rust-lang
/
rust
/
refs/heads/try-perf
/
.
/
tests
/
ui
/
deprecation
/
deprecated-expr-precedence.rs
blob: 08a741e11c0de26079e59febfccdee7548e37935 [
file
] [
log
] [
blame
] [
edit
]
//@ 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
}