rust/tests/rustdoc/useless_lifetime_bound.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
377 B
Rust
Raw Normal View History

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 20:13:12 +00:00
}
2019-04-03 20:18:41 +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>,
}