rustc/tests/ui/impl-trait/in-trait/bad-item-bound-within-rpitit-2.rs
2024-06-04 21:09:03 +02:00

11 lines
198 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`
}
fn main() {}