rust/tests/ui/impl-trait/in-trait/bad-item-bound-within-rpitit-2.rs
2024-03-28 06:00:26 +00:00

12 lines
266 B
Rust

// issue: 114146
trait Foo {
fn bar<'other: 'a>() -> impl Sized + 'a {}
//~^ ERROR use of undeclared lifetime name `'a`
//~| ERROR use of undeclared lifetime name `'a`
//~| ERROR expected generic lifetime parameter, found `'static`
}
fn main() {}