2019-03-31 15:32:25 +02:00
|
|
|
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 ()>,
|
2019-04-03 22:13:12 +02:00
|
|
|
}
|
2019-04-03 22:18:41 +02:00
|
|
|
|
|
|
|
// @has useless_lifetime_bound/struct.Scope.html
|
|
|
|
// @!has - '//*[@class="rust struct"]' "T: 'a + 'a"
|
|
|
|
pub struct SomeStruct<'a, T: 'a> {
|
|
|
|
_marker: PhantomData<&'a T>,
|
|
|
|
}
|