]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/auto-trait-not-send.rs
Auto merge of #107778 - weihanglo:update-cargo, r=weihanglo
[rust.git] / tests / rustdoc / auto-trait-not-send.rs
1 #![crate_name = "foo"]
2
3 // @has 'foo/struct.Foo.html'
4 // @has - '//*[@id="impl-Send-for-Foo"]' 'impl !Send for Foo'
5 // @has - '//*[@id="impl-Sync-for-Foo"]' 'impl !Sync for Foo'
6 pub struct Foo(*const i8);
7 pub trait Whatever: Send {}
8 impl<T: Send + ?Sized> Whatever for T {}