]> git.proxmox.com Git - rustc.git/blobdiff - tests/rustdoc/generic-associated-types/gats.rs
New upstream version 1.72.1+dfsg1
[rustc.git] / tests / rustdoc / generic-associated-types / gats.rs
index 7ab82bb582965909480eee1defb38a96fe149ec6..605176e5feaf29a2aff2d895ccdf66d248cdd079 100644 (file)
@@ -23,9 +23,9 @@ impl LendingIterator for () {
 pub struct Infinite<T>(T);
 
 // @has foo/trait.LendingIterator.html
-// @has - '//*[@id="associatedtype.Item-2"]//h4[@class="code-header"]' "type Item<'a> where Self: 'a = &'a T"
+// @has - '//*[@id="associatedtype.Item-2"]//h4[@class="code-header"]' "type Item<'a> = &'a T where Self: 'a"
 impl<T> LendingIterator for Infinite<T> {
-    type Item<'a> where Self: 'a = &'a T;
+    type Item<'a> = &'a T where Self: 'a;
 
     fn next<'a>(&'a self) -> Self::Item<'a> {
         &self.0