rust/tests/ui/impl-trait/in-trait/bad-item-bound-within-rpitit-2.rs

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

11 lines
198 B
Rust
Raw Normal View History

2023-07-27 17:50:40 -05:00
// 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() {}