• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #[rustversion::attr(all(), const)]
_basic()2 fn _basic() {}
3 const _BASIC: () = _basic();
4 
5 #[rustversion::attr(all(), const)]
_unsafe()6 unsafe fn _unsafe() {}
7 const _UNSAFE: () = unsafe { _unsafe() };
8 
9 macro_rules! item {
10     ($i:item) => {
11         #[rustversion::attr(all(), const)]
12         $i
13     };
14 }
15 
16 item! {fn _item() {}}
17 const _ITEM: () = _item();
18 
19 macro_rules! ident {
20     ($fn:ident) => {
21         #[rustversion::attr(all(), const)]
22         $fn _ident() {}
23     };
24 }
25 
26 ident! {fn}
27 const _IDENT: () = _ident();
28 
29 #[rustversion::attr(all(), const)]
30 /// doc
_doc_below()31 fn _doc_below() {}
32 const _DOC_BELOW: () = _doc_below();
33 
34 /// doc
35 #[rustversion::attr(all(), const)]
_doc_above()36 fn _doc_above() {}
37 const _DOC_ABOVE: () = _doc_above();
38