about summary refs log tree commit diff
path: root/src/test/rustdoc
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2019-04-03 22:18:41 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2019-04-03 22:18:41 +0200
commitc966c458975cc6987f83440206bdedd3cab298b6 (patch)
treec3793f87d47e1d6d07d4a5c6aac3b8566ef52d1f /src/test/rustdoc
parentf6eb09bf632bd3773969ef53e54572f9dd523046 (diff)
downloadrust-c966c458975cc6987f83440206bdedd3cab298b6.tar.gz
rust-c966c458975cc6987f83440206bdedd3cab298b6.zip
Add test from #59033
Diffstat (limited to 'src/test/rustdoc')
-rw-r--r--src/test/rustdoc/useless_lifetime_bound.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/rustdoc/useless_lifetime_bound.rs b/src/test/rustdoc/useless_lifetime_bound.rs
index 5628b60e77d..f530d8a654f 100644
--- a/src/test/rustdoc/useless_lifetime_bound.rs
+++ b/src/test/rustdoc/useless_lifetime_bound.rs
@@ -5,3 +5,9 @@ use std::marker::PhantomData;
 pub struct Scope<'env> {
     _marker: PhantomData<&'env mut &'env ()>,
 }
+
+// @has useless_lifetime_bound/struct.Scope.html
+// @!has - '//*[@class="rust struct"]' "T: 'a + 'a"
+pub struct SomeStruct<'a, T: 'a> {
+    _marker: PhantomData<&'a T>,
+}