Skip to content

Commit dbbe909

Browse files
Make rustdoc tests use always applicable negative auto impls
1 parent 2688777 commit dbbe909

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/rustdoc/impl-parts-crosscrate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
extern crate rustdoc_impl_parts_crosscrate;
77

8-
pub struct Bar<T> { t: T }
8+
pub struct Bar<T: Copy + Send> { t: T }
99

1010
// The output file is html embedded in javascript, so the html tags
1111
// aren't stripped by the processing script and we can't check for the

tests/rustdoc/impl-parts.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
pub auto trait AnAutoTrait {}
55

6-
pub struct Foo<T> { field: T }
6+
pub struct Foo<T: Clone + Sync> { field: T }
77

88
//@ has impl_parts/struct.Foo.html '//*[@class="impl"]//h3[@class="code-header"]' \
99
// "impl<T> !AnAutoTrait for Foo<T>where T: Sync + Clone,"

0 commit comments

Comments
 (0)