Skip to content
Permalink
Browse files

Add test from #59033

  • Loading branch information...
GuillaumeGomez committed Apr 3, 2019
1 parent f6eb09b commit c966c458975cc6987f83440206bdedd3cab298b6
Showing with 6 additions and 0 deletions.
  1. +6 −0 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>,
}

0 comments on commit c966c45

Please sign in to comment.
You can’t perform that action at this time.