]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/primitive-slice-auto-trait.rs
Merge commit '2b2190cb5667cdd276a24ef8b9f3692209c54a89' into clippyup
[rust.git] / src / test / rustdoc / primitive-slice-auto-trait.rs
1 // compile-flags: --crate-type lib --edition 2018
2
3 #![crate_name = "foo"]
4 #![feature(rustdoc_internals)]
5
6 // @has foo/primitive.slice.html '//a[@class="primitive"]' 'slice'
7 // @has - '//span[@class="in-band"]' 'Primitive Type slice'
8 // @has - '//section[@id="main-content"]//div[@class="docblock"]//p' 'this is a test!'
9 // @has - '//h2[@id="synthetic-implementations"]' 'Auto Trait Implementations'
10 // @has - '//div[@id="synthetic-implementations-list"]//h3' 'impl<T> Send for [T] where T: Send'
11 // @has - '//div[@id="synthetic-implementations-list"]//h3' 'impl<T> Sync for [T] where T: Sync'
12 #[doc(primitive = "slice")]
13 /// this is a test!
14 mod slice_prim {}