Add test from #59033

This commit is contained in:
Guillaume Gomez 2019-04-03 22:18:41 +02:00
parent f6eb09bf63
commit c966c45897
1 changed files with 6 additions and 0 deletions

View File

@ -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>,
}