diff options
| author | Michael Goulet <michael@errs.io> | 2024-10-17 12:31:48 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-10-17 12:32:31 -0400 |
| commit | 8ff8f78e4ca8a898697412a3895cb3070f161d1e (patch) | |
| tree | f2664d190dc5941da58aa25b3162501c7bb28b7e /tests/rustdoc | |
| parent | 3a85d3fa785d95a7b7bcf4f160b67bffba7afd4a (diff) | |
| download | rust-8ff8f78e4ca8a898697412a3895cb3070f161d1e.tar.gz rust-8ff8f78e4ca8a898697412a3895cb3070f161d1e.zip | |
Dont consider predicates that may hold as impossible in is_impossible_associated_item
Diffstat (limited to 'tests/rustdoc')
| -rw-r--r-- | tests/rustdoc/impossible-default.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/rustdoc/impossible-default.rs b/tests/rustdoc/impossible-default.rs index fad64068010..c9444004d5c 100644 --- a/tests/rustdoc/impossible-default.rs +++ b/tests/rustdoc/impossible-default.rs @@ -18,3 +18,11 @@ pub trait Foo { pub struct Bar([u8]); impl Foo for Bar {} + +//@ has foo/struct.Generic.html '//*[@id="method.needs_sized"]//h4[@class="code-header"]' \ +// "fn needs_sized" +//@ has foo/struct.Generic.html '//*[@id="method.no_needs_sized"]//h4[@class="code-header"]' \ +// "fn no_needs_sized" +pub struct Generic<T: ?Sized>(T); + +impl<T: ?Sized> Foo for Generic<T> {} |
