debian/rust-vendor/link-section/tests/errors/bad_item.rs
raw| 1 | use link_section::{section, in_section}; |
| 2 | |
| 3 | #[section(typed)] |
| 4 | static SECTION: link_section::TypedSection<u32>; |
| 5 | |
| 6 | // Currently returns different errors between nightly and stable |
| 7 | // #[in_section(SECTION)] |
| 8 | // fn bad_item() { |
| 9 | // println!("bad_item"); |
| 10 | // } |
| 11 | |
| 12 | #[in_section(SECTION)] |
| 13 | static BAD_ITEM: u64 = 1; |
| 14 | |
| 15 | fn main() { |
| 16 | } |