]>
git.proxmox.com Git - rustc.git/blob - src/test/rustdoc-ui/coverage/statics-consts.rs
1 // compile-flags:-Z unstable-options --show-coverage
2 // build-pass (FIXME(62277): could be check-pass?)
4 //! gotta make sure we can count statics and consts correctly, too
6 /// static like electricity, right?
7 pub static THIS_STATIC
: usize = 0;
9 /// (it's not electricity, is it)
10 pub const THIS_CONST
: usize = 1;
12 /// associated consts show up separately, but let's throw them in as well
14 /// just like that, yeah
15 const ASSOC_CONST
: usize;
18 pub struct SomeStruct
;
21 /// wait, structs can have them too, can't forget those
22 pub const ASSOC_CONST
: usize = 100;