]>
git.proxmox.com Git - rustc.git/blob - src/tools/rust-analyzer/crates/parser/test_data/parser/ok/0045_block_attrs.rs
2 #![doc("Inner attributes allowed here")]
3 //! As are ModuleDoc style comments
5 #![doc("Inner attributes are allowed in blocks used as statements")]
6 #![doc("Being validated is not affected by duplicates")]
7 //! As are ModuleDoc style comments
10 #![doc("Inner attributes are allowed in blocks when they are the last statement of another block")]
11 //! As are ModuleDoc style comments
16 let _
= #[doc("Outer attributes are always allowed")] {};
19 // https://github.com/rust-lang/rust-analyzer/issues/689
21 fn salsa_event(&self, event_fn
: impl Fn() -> Event
<Self>) {
22 #![allow(unused_variables)] // this is `inner_attr` of the block