]> git.lizzy.rs Git - rust.git/blob - src/test/ui/proc-macro/proc-macro-deprecated-attr.rs
Auto merge of #106349 - LeSeulArtichaut:dyn-star-tracking-issue, r=jackh726
[rust.git] / src / test / 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 }