Skip to content

Commit 7c53ae0

Browse files
Add test to ensure auto-traits are respecting constraints
1 parent 28b6d2c commit 7c53ae0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#![crate_name = "foo"]
2+
3+
// @has 'foo/struct.Foo.html'
4+
// @has - '//*[@id="impl-Send"]' 'impl !Send for Foo'
5+
// @has - '//*[@id="impl-Sync"]' 'impl !Sync for Foo'
6+
pub struct Foo(*const i8);
7+
pub trait Whatever: Send {}
8+
impl<T: Send + ?Sized> Whatever for T {}

0 commit comments

Comments
 (0)