mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
17 lines
318 B
Rust
17 lines
318 B
Rust
// check-pass
|
|
// force-host
|
|
// no-prefer-dynamic
|
|
|
|
#![deny(deprecated)]
|
|
|
|
#![crate_type = "proc-macro"]
|
|
|
|
extern crate proc_macro;
|
|
use proc_macro::*;
|
|
|
|
#[proc_macro]
|
|
#[deprecated(since = "1.0.0", note = "test")]
|
|
pub fn test_compile_without_warning_with_deprecated(_: TokenStream) -> TokenStream {
|
|
TokenStream::new()
|
|
}
|