]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/impl-parts-crosscrate.rs
Rollup merge of #56594 - sdroege:c_void-is-not-never, r=TimNN
[rust.git] / src / test / rustdoc / impl-parts-crosscrate.rs
1 // aux-build:rustdoc-impl-parts-crosscrate.rs
2 // ignore-cross-compile
3
4 #![feature(optin_builtin_traits)]
5
6 extern crate rustdoc_impl_parts_crosscrate;
7
8 pub struct Bar<T> { t: T }
9
10 // The output file is html embedded in javascript, so the html tags
11 // aren't stripped by the processing script and we can't check for the
12 // full impl string.  Instead, just make sure something from each part
13 // is mentioned.
14
15 // @has implementors/rustdoc_impl_parts_crosscrate/trait.AnOibit.js Bar
16 // @has - Send
17 // @has - !AnOibit
18 // @has - Copy
19 impl<T: Send> !rustdoc_impl_parts_crosscrate::AnOibit for Bar<T>
20     where T: Copy {}