]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-json/impls/auto.rs
Rollup merge of #103236 - tspiteri:redoc-int-adc-sbb, r=m-ou-se
[rust.git] / tests / rustdoc-json / impls / auto.rs
1 #![feature(no_core, auto_traits, lang_items)]
2 #![no_core]
3
4 #[lang = "sized"]
5 trait Sized {}
6
7 pub auto trait Bar {}
8
9 /// has span
10 impl Foo {
11     pub fn baz(&self) {}
12 }
13
14 // Testing spans, so all tests below code
15 // @is "$.index[*][?(@.kind=='impl' && @.inner.synthetic==true)].span" null
16 // @is "$.index[*][?(@.docs=='has span')].span.begin" "[10, 0]"
17 // @is "$.index[*][?(@.docs=='has span')].span.end" "[12, 1]"
18 pub struct Foo;