mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 19:17:43 +00:00

constants and statics are nullary functions, and struct fields are unary functions. functions (along with methods and trait methods) are prioritized over other items, like fields and constants.
8 lines
208 B
JavaScript
8 lines
208 B
JavaScript
const EXPECTED = {
|
|
// one of the only non-generic structs with public fields
|
|
'query': 'CpuidResult -> u32',
|
|
'others': [
|
|
{ 'path': 'core::arch::x86::CpuidResult', 'name': 'eax' },
|
|
],
|
|
}
|