about summary refs log tree commit diff
path: root/src/test/rustdoc
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2019-03-31 15:32:25 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2019-03-31 15:32:25 +0200
commitddd034aa6f04e7f452bca398e3982c4a5ef6c0bc (patch)
treeac7389dabe7dd103a103fdee12ad897032913d7d /src/test/rustdoc
parent2002b4b39a16760f37107cf02d7a91ff316d3073 (diff)
downloadrust-ddd034aa6f04e7f452bca398e3982c4a5ef6c0bc.tar.gz
rust-ddd034aa6f04e7f452bca398e3982c4a5ef6c0bc.zip
Fix invalid bounds string generation in rustdoc
Diffstat (limited to 'src/test/rustdoc')
-rw-r--r--src/test/rustdoc/useless_lifetime_bound.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/rustdoc/useless_lifetime_bound.rs b/src/test/rustdoc/useless_lifetime_bound.rs
new file mode 100644
index 00000000000..d40456dbcf1
--- /dev/null
+++ b/src/test/rustdoc/useless_lifetime_bound.rs
@@ -0,0 +1,7 @@
+use std::marker::PhantomData;
+
+// @has useless_lifetime_bound/struct.Scope.html
+// @!has - '//*[@class="rust struct"]' "'env: 'env"
+pub struct Scope<'env> {
+    _marker: PhantomData<&'env mut &'env ()>,
+}
\ No newline at end of file