diff options
Diffstat (limited to 'tests/rustdoc/synthetic_auto/negative.rs')
-rw-r--r-- | tests/rustdoc/synthetic_auto/negative.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/rustdoc/synthetic_auto/negative.rs b/tests/rustdoc/synthetic_auto/negative.rs new file mode 100644 index 000000000..2c2c848a5 --- /dev/null +++ b/tests/rustdoc/synthetic_auto/negative.rs @@ -0,0 +1,13 @@ +pub struct Inner<T: Copy> { + field: *mut T, +} + +// @has negative/struct.Outer.html +// @has - '//*[@id="synthetic-implementations-list"]//*[@class="impl has-srclink"]//h3[@class="code-header"]' \ +// "impl<T> !Send for Outer<T>" +// +// @has - '//*[@id="synthetic-implementations-list"]//*[@class="impl has-srclink"]//h3[@class="code-header"]' \ +// "impl<T> !Sync for Outer<T>" +pub struct Outer<T: Copy> { + inner_field: Inner<T>, +} |