diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-03-23 22:13:23 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-23 22:13:23 +0100 |
| commit | 0c79c862f0e7e6ab56ea6d78b15410de209e0825 (patch) | |
| tree | 911c8e2cbf86229e52070af716f53b80d89d88d7 /src/test | |
| parent | af19a50a2697392e89cdda2b94ab271459e1c729 (diff) | |
| parent | 7c53ae09a85b79b3e20a85771a68e8e63aec265c (diff) | |
| download | rust-0c79c862f0e7e6ab56ea6d78b15410de209e0825.tar.gz rust-0c79c862f0e7e6ab56ea6d78b15410de209e0825.zip | |
Rollup merge of #95069 - GuillaumeGomez:auto-traits-rustdoc, r=oli-obk
Fix auto traits in rustdoc Fixes #90324. cc `@matthewjasper` r? `@Aaron1011`
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/rustdoc/auto-trait-not-send.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/rustdoc/auto-trait-not-send.rs b/src/test/rustdoc/auto-trait-not-send.rs new file mode 100644 index 00000000000..7bd4f6dbd8c --- /dev/null +++ b/src/test/rustdoc/auto-trait-not-send.rs @@ -0,0 +1,8 @@ +#![crate_name = "foo"] + +// @has 'foo/struct.Foo.html' +// @has - '//*[@id="impl-Send"]' 'impl !Send for Foo' +// @has - '//*[@id="impl-Sync"]' 'impl !Sync for Foo' +pub struct Foo(*const i8); +pub trait Whatever: Send {} +impl<T: Send + ?Sized> Whatever for T {} |
