3 // @has foo/struct.Foo0.html
7 // @has - '//*[@class="stab deprecated"]' 'Deprecated since 1.0.1: fn_with_doc'
8 // @has - 'fn_with_doc short'
9 // @has - 'fn_with_doc full'
13 #[deprecated(since = "1.0.1", note = "fn_with_doc")]
14 pub fn fn_with_doc() {}
16 // @has - '//*[@class="stab deprecated"]' 'Deprecated since 1.0.2: fn_without_doc'
17 #[deprecated(since = "1.0.2", note = "fn_without_doc")]
18 pub fn fn_without_doc() {}
22 /// fn_empty_with_doc short
24 /// fn_empty_with_doc full
25 #[deprecated(since = "1.0.3", note = "fn_empty_with_doc")]
26 fn fn_empty_with_doc();
28 #[deprecated(since = "1.0.4", note = "fn_empty_without_doc")]
29 fn fn_empty_without_doc();
31 /// fn_def_with_doc short
33 /// fn_def_with_doc full
34 #[deprecated(since = "1.0.5", note = "fn_def_with_doc")]
35 fn fn_def_with_doc() {}
37 #[deprecated(since = "1.0.6", note = "fn_def_without_doc")]
38 fn fn_def_without_doc() {}
40 /// fn_def_def_with_doc short
42 /// fn_def_def_with_doc full
43 #[deprecated(since = "1.0.7", note = "fn_def_def_with_doc")]
44 fn fn_def_def_with_doc() {}
46 #[deprecated(since = "1.0.8", note = "fn_def_def_without_doc")]
47 fn fn_def_def_without_doc() {}
50 // @has foo/struct.Foo1.html
54 // @has - '//*[@class="stab deprecated"]' 'Deprecated since 1.0.3: fn_empty_with_doc'
55 // @has - 'fn_empty_with_doc_impl short'
56 // @has - 'fn_empty_with_doc_impl full'
57 /// fn_empty_with_doc_impl short
59 /// fn_empty_with_doc_impl full
60 fn fn_empty_with_doc() {}
62 // @has - '//*[@class="stab deprecated"]' 'Deprecated since 1.0.4: fn_empty_without_doc'
63 fn fn_empty_without_doc() {}
65 // @has - '//*[@class="stab deprecated"]' 'Deprecated since 1.0.5: fn_def_with_doc'
66 // @has - 'fn_def_with_doc_impl short'
67 // @has - 'fn_def_with_doc_impl full'
68 /// fn_def_with_doc_impl short
70 /// fn_def_with_doc_impl full
71 fn fn_def_with_doc() {}
73 // @has - '//*[@class="stab deprecated"]' 'Deprecated since 1.0.6: fn_def_without_doc'
74 fn fn_def_without_doc() {}
76 // @has - '//*[@class="stab deprecated"]' 'Deprecated since 1.0.7: fn_def_def_with_doc'
77 // @has - 'fn_def_def_with_doc short'
78 // @!has - 'fn_def_def_with_doc full'
80 // @has - '//*[@class="stab deprecated"]' 'Deprecated since 1.0.8: fn_def_def_without_doc'
83 // @has foo/struct.Foo2.html
87 // @has - '//*[@class="stab deprecated"]' 'Deprecated since 1.0.3: fn_empty_with_doc'
88 // @has - 'fn_empty_with_doc short'
89 // @!has - 'fn_empty_with_doc full'
90 fn fn_empty_with_doc() {}
92 // @has - '//*[@class="stab deprecated"]' 'Deprecated since 1.0.4: fn_empty_without_doc'
93 // @has - 'fn_empty_without_doc_impl short'
94 // @has - 'fn_empty_without_doc_impl full'
95 /// fn_empty_without_doc_impl short
97 /// fn_empty_without_doc_impl full
98 fn fn_empty_without_doc() {}
100 // @has - '//*[@class="stab deprecated"]' 'Deprecated since 1.0.5: fn_def_with_doc'
101 // @has - 'fn_def_with_doc short'
102 // @!has - 'fn_def_with_doc full'
103 fn fn_def_with_doc() {}
105 // @has - '//*[@class="stab deprecated"]' 'Deprecated since 1.0.6: fn_def_without_doc'
106 // @has - 'fn_def_without_doc_impl short'
107 // @has - 'fn_def_without_doc_impl full'
108 /// fn_def_without_doc_impl short
110 /// fn_def_without_doc_impl full
111 fn fn_def_without_doc() {}
113 // @has - '//*[@class="stab deprecated"]' 'Deprecated since 1.0.7: fn_def_def_with_doc'
114 // @has - 'fn_def_def_with_doc short'
115 // @!has - 'fn_def_def_with_doc full'
117 // @has - '//*[@class="stab deprecated"]' 'Deprecated since 1.0.8: fn_def_def_without_doc'