summary refs log tree commit diff
path: root/tests/ui/deprecation/deprecated-expr-precedence.rs
blob: 9636b46df201391b7f4ace53f1d62bb01f705cc2 (plain)
1
2
3
4
5
6
7
8
//@ check-fail
//@ compile-flags: --crate-type=lib

// Regression test for issue 142649
pub fn public() {
    #[deprecated] 0
    //~^ ERROR mismatched types
}