mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 14:01:51 +00:00
14 lines
377 B
Rust
14 lines
377 B
Rust
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>,
|
|
}
|