]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-json/impls/auto.rs
Rollup merge of #100514 - compiler-errors:issue-100191, r=spastorino
[rust.git] / src / test / 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 auto.json "$.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;