rust/tests/rustdoc-js-std/const-is-nullary-func.js
binarycat 9397d133f6 Treat other items as functions for the purpose of type-based search
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.
2025-01-16 11:52:00 -06:00

7 lines
171 B
JavaScript

const EXPECTED = {
'query': '-> char',
'others': [
{ 'path': 'std::char', 'name': 'from_digit' },
{ 'path': 'std::char', 'name': 'MAX' },
],
}