mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-30 22:28:26 +00:00
11 lines
248 B
Rust
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
|
|
}
|