about summary refs log tree commit diff
path: root/tests/rustdoc/useless_lifetime_bound.rs
blob: 68d55eec10c8cf3a113848edfdd57eab65a67288 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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 ()>,
}

//@ has useless_lifetime_bound/struct.Scope.html
//@ !has - '//*[@class="rust struct"]' "T: 'a + 'a"
pub struct SomeStruct<'a, T: 'a> {
    _marker: PhantomData<&'a T>,
}