diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-06-21 14:03:08 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-06-24 11:08:41 +0200 |
| commit | 1b67035579fc6157ca2f3fb8b7e6071ff6d888bc (patch) | |
| tree | e53cb08e1dfa396dd2abd4ffbb91aa6826a463d9 /tests/rustdoc/generic-const-items.rs | |
| parent | d3ec92e16e7e78c273c0f996cad5122ce5a6cdd6 (diff) | |
| download | rust-1b67035579fc6157ca2f3fb8b7e6071ff6d888bc.tar.gz rust-1b67035579fc6157ca2f3fb8b7e6071ff6d888bc.zip | |
Update `tests/rustdoc` to new test syntax
Diffstat (limited to 'tests/rustdoc/generic-const-items.rs')
| -rw-r--r-- | tests/rustdoc/generic-const-items.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/rustdoc/generic-const-items.rs b/tests/rustdoc/generic-const-items.rs index e2c6a027afa..31c300f2ff1 100644 --- a/tests/rustdoc/generic-const-items.rs +++ b/tests/rustdoc/generic-const-items.rs @@ -1,8 +1,8 @@ #![feature(generic_const_items)] #![allow(incomplete_features)] -// @has 'generic_const_items/constant.K.html' -// @has - '//*[@class="rust item-decl"]//code' \ +//@ has 'generic_const_items/constant.K.html' +//@ has - '//*[@class="rust item-decl"]//code' \ // "pub const K<'a, T: 'a + Copy, const N: usize>: Option<[T; N]> \ // where \ // String: From<T>;" @@ -10,9 +10,9 @@ pub const K<'a, T: 'a + Copy, const N: usize>: Option<[T; N]> = None where String: From<T>; -// @has generic_const_items/trait.Trait.html +//@ has generic_const_items/trait.Trait.html pub trait Trait<T: ?Sized> { - // @has - '//*[@id="associatedconstant.C"]' \ + //@ has - '//*[@id="associatedconstant.C"]' \ // "const C<'a>: &'a T \ // where \ // T: 'a + Eq" @@ -23,10 +23,10 @@ pub trait Trait<T: ?Sized> { pub struct Implementor; -// @has generic_const_items/struct.Implementor.html -// @has - '//h3[@class="code-header"]' 'impl Trait<str> for Implementor' +//@ has generic_const_items/struct.Implementor.html +//@ has - '//h3[@class="code-header"]' 'impl Trait<str> for Implementor' impl Trait<str> for Implementor { - // @has - '//*[@id="associatedconstant.C"]' \ + //@ has - '//*[@id="associatedconstant.C"]' \ // "const C<'a>: &'a str = \"C\" \ // where \ // str: 'a" |
