2023-10-31 08:58:03 -05:00
|
|
|
#![feature(no_core, auto_traits, lang_items, arbitrary_self_types)]
|
2022-08-08 21:48:01 -05:00
|
|
|
#![no_core]
|
|
|
|
|
|
|
|
#[lang = "sized"]
|
|
|
|
trait Sized {}
|
|
|
|
|
2023-10-31 08:58:03 -05:00
|
|
|
#[lang = "receiver"]
|
|
|
|
pub trait Receiver {}
|
|
|
|
|
2022-08-08 21:48:01 -05:00
|
|
|
pub auto trait Bar {}
|
|
|
|
|
|
|
|
/// has span
|
|
|
|
impl Foo {
|
|
|
|
pub fn baz(&self) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Testing spans, so all tests below code
|
2023-10-31 08:58:03 -05:00
|
|
|
// @is "$.index[*][?(@.docs=='has span')].span.begin" "[13, 0]"
|
|
|
|
// @is "$.index[*][?(@.docs=='has span')].span.end" "[15, 1]"
|
2023-05-22 12:17:52 -05:00
|
|
|
// FIXME: this doesn't work due to https://github.com/freestrings/jsonpath/issues/91
|
|
|
|
// is "$.index[*][?(@.inner.impl.synthetic==true)].span" null
|
2022-08-08 21:48:01 -05:00
|
|
|
pub struct Foo;
|