]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/proc-macro-deprecated-attr.rs
Merge commit '598f0909568a51de8a2d1148f55a644fd8dffad0' into sync_cg_clif-2023-01-24
[rust.git] / tests / ui / proc-macro / proc-macro-deprecated-attr.rs
1 // check-pass
2 // force-host
3 // no-prefer-dynamic
4
5 #![deny(deprecated)]
6
7 #![crate_type = "proc-macro"]
8
9 extern crate proc_macro;
10 use proc_macro::*;
11
12 #[proc_macro]
13 #[deprecated(since = "1.0.0", note = "test")]
14 pub fn test_compile_without_warning_with_deprecated(_: TokenStream) -> TokenStream {
15     TokenStream::new()
16 }