Skip to content

Commit

Permalink
Add test from #59033
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Apr 3, 2019
1 parent f6eb09b commit c966c45
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/test/rustdoc/useless_lifetime_bound.rs
Expand Up @@ -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.