rust/tests/ui/lifetimes/conflicting-bounds.rs
2025-04-08 23:06:31 +03:00

12 lines
210 B
Rust

//~ ERROR type annotations needed: cannot satisfy `Self: Gen<'source>`
pub trait Gen<'source> {
type Output;
fn gen<T>(&self) -> T
where
Self: for<'s> Gen<'s, Output = T>;
}
fn main() {}