2019-03-31 13:32:25 +00:00
|
|
|
use std::marker::PhantomData;
|
|
|
|
|
2024-06-21 12:03:08 +00:00
|
|
|
//@ has useless_lifetime_bound/struct.Scope.html
|
|
|
|
//@ !has - '//*[@class="rust struct"]' "'env: 'env"
|
2019-03-31 13:32:25 +00:00
|
|
|
pub struct Scope<'env> {
|
|
|
|
_marker: PhantomData<&'env mut &'env ()>,
|
2019-04-03 20:13:12 +00:00
|
|
|
}
|
2019-04-03 20:18:41 +00:00
|
|
|
|
2024-06-21 12:03:08 +00:00
|
|
|
//@ has useless_lifetime_bound/struct.Scope.html
|
|
|
|
//@ !has - '//*[@class="rust struct"]' "T: 'a + 'a"
|
2019-04-03 20:18:41 +00:00
|
|
|
pub struct SomeStruct<'a, T: 'a> {
|
|
|
|
_marker: PhantomData<&'a T>,
|
|
|
|
}
|