]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/primitive-slice-auto-trait.rs
Fix problem noticed in PR106859 with char -> u8 suggestion
[rust.git] / tests / 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 - '//h1' '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 {}