diff options
| author | bors <bors@rust-lang.org> | 2023-06-23 11:41:43 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-06-23 11:41:43 +0000 |
| commit | 54d6738a8df74382c439e1dfb9ce4e2382d7742e (patch) | |
| tree | 583ef1002164999982cf99c256bace32b8722e41 /tests/rustdoc/where.rs | |
| parent | fe37f37e4b764bb82fc0eb8c727842746de7c93f (diff) | |
| parent | c5fd53774fde96b74b31c280972142c04e3a3445 (diff) | |
| download | rust-54d6738a8df74382c439e1dfb9ce4e2382d7742e.tar.gz rust-54d6738a8df74382c439e1dfb9ce4e2382d7742e.zip | |
Auto merge of #112957 - matthiaskrgr:rollup-7ly0nv7, r=matthiaskrgr
Rollup of 9 pull requests Successful merges: - #111747 (Don't structurally resolve during method ambiguity in probe) - #112704 (slice::from_raw_parts: mention no-wrap-around condition) - #112927 (Fix indentation for where clause in rustdoc pages) - #112933 (Avoid `&format` in error message code) - #112935 (style-guide: Fix typo) - #112941 (typo) - #112942 (style-guide: Organizational and editing tweaks (no semantic changes)) - #112944 (style-guide: Add language disclaiming any effects on non-default Rust styles) - #112948 (Avoid guessing unknown trait implementation in suggestions) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'tests/rustdoc/where.rs')
| -rw-r--r-- | tests/rustdoc/where.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/rustdoc/where.rs b/tests/rustdoc/where.rs index 8b8a126e89d..2aa9c8b5461 100644 --- a/tests/rustdoc/where.rs +++ b/tests/rustdoc/where.rs @@ -5,16 +5,20 @@ use std::io::Lines; pub trait MyTrait { fn dummy(&self) { } } // @has foo/struct.Alpha.html '//pre' "pub struct Alpha<A>(_) where A: MyTrait" +// @snapshot alpha_trait_decl - '//*[@class="rust item-decl"]/code' pub struct Alpha<A>(A) where A: MyTrait; // @has foo/trait.Bravo.html '//pre' "pub trait Bravo<B>where B: MyTrait" +// @snapshot bravo_trait_decl - '//*[@class="rust item-decl"]/code' pub trait Bravo<B> where B: MyTrait { fn get(&self, B: B); } // @has foo/fn.charlie.html '//pre' "pub fn charlie<C>()where C: MyTrait" +// @snapshot charlie_fn_decl - '//*[@class="rust item-decl"]/code' pub fn charlie<C>() where C: MyTrait {} pub struct Delta<D>(D); // @has foo/struct.Delta.html '//*[@class="impl"]//h3[@class="code-header"]' \ // "impl<D> Delta<D>where D: MyTrait" +// @snapshot SWhere_Echo_impl - '//*[@id="impl-Delta%3CD%3E"]/h3[@class="code-header"]' impl<D> Delta<D> where D: MyTrait { pub fn delta() {} } @@ -65,4 +69,5 @@ impl<F> MyTrait for Foxtrot<F>where F: MyTrait {} // @has foo/type.Golf.html '//pre[@class="rust item-decl"]' \ // "type Golf<T>where T: Clone, = (T, T)" +// @snapshot golf_type_alias_decl - '//*[@class="rust item-decl"]/code' pub type Golf<T> where T: Clone = (T, T); |
