2023-10-31 13:58:03 +00:00
|
|
|
#![feature(no_core, auto_traits, lang_items, arbitrary_self_types)]
|
2022-08-09 02:48:01 +00:00
|
|
|
#![no_core]
|
|
|
|
|
|
|
|
#[lang = "sized"]
|
|
|
|
trait Sized {}
|
|
|
|
|
2024-09-11 12:27:08 +00:00
|
|
|
#[lang = "legacy_receiver"]
|
|
|
|
pub trait LegacyReceiver {}
|
2023-10-31 13:58:03 +00:00
|
|
|
|
2022-08-09 02:48:01 +00:00
|
|
|
pub auto trait Bar {}
|
|
|
|
|
|
|
|
/// has span
|
|
|
|
impl Foo {
|
|
|
|
pub fn baz(&self) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Testing spans, so all tests below code
|
2025-04-16 15:28:28 +02:00
|
|
|
//@ is "$.index[?(@.docs=='has span')].span.begin" "[13, 1]"
|
|
|
|
//@ is "$.index[?(@.docs=='has span')].span.end" "[15, 2]"
|
2025-04-20 11:28:16 +00:00
|
|
|
//@ is "$.index[?(@.docs=='has span')].inner.impl.is_synthetic" false
|
|
|
|
//@ is "$.index[?(@.inner.impl.is_synthetic==true)].span" null
|
|
|
|
//@ is "$.index[?(@.inner.impl.is_synthetic==true)].inner.impl.for.resolved_path.path" '"Foo"'
|
|
|
|
//@ is "$.index[?(@.inner.impl.is_synthetic==true)].inner.impl.trait.path" '"Bar"'
|
2022-08-09 02:48:01 +00:00
|
|
|
pub struct Foo;
|