mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +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>,
|
|
}
|