mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 11:07:42 +00:00
13 lines
293 B
Rust
13 lines
293 B
Rust
struct Invariant<'a>(&'a mut &'a mut ());
|
|
|
|
trait Trait {
|
|
fn hello(self_: Invariant<'_>) -> impl Sized + use<Self>;
|
|
}
|
|
|
|
impl Trait for () {
|
|
fn hello(self_: Invariant<'_>) -> impl Sized + use<'_> {}
|
|
//~^ ERROR return type captures more lifetimes than trait definition
|
|
}
|
|
|
|
fn main() {}
|