summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc/useless_lifetime_bound.rs
blob: f530d8a654f011dd440e2122ad49c317ad685282 (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>,
}