mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 01:34:21 +00:00
12 lines
374 B
Rust
12 lines
374 B
Rust
pub struct Demo {
|
|
pub x: i32,
|
|
#[doc(hidden)]
|
|
pub y: i32,
|
|
}
|
|
|
|
// @set x = "$.index[*][?(@.name=='x')].id"
|
|
// @!has "$.index[*][?(@.name=='y')].id"
|
|
// @is "$.index[*][?(@.name=='Demo')].inner.kind.plain.fields[0]" $x
|
|
// @count "$.index[*][?(@.name=='Demo')].inner.kind.plain.fields[*]" 1
|
|
// @is "$.index[*][?(@.name=='Demo')].inner.kind.plain.fields_stripped" true
|