]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/proc-macro-deprecated-attr.rs
Auto merge of #106503 - cjgillot:remap-nofilter, r=oli-obk
[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 }