rust/tests/ui/impl-trait/universal_wrong_hrtb.rs

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

9 lines
201 B
Rust
Raw Normal View History

trait Trait<'a> {
type Assoc;
}
fn test_argument_position(x: impl for<'a> Trait<'a, Assoc = impl Copy + 'a>) {}
2023-06-26 13:36:37 -05:00
//~^ ERROR `impl Trait` can only mention lifetimes from an fn or impl
fn main() {}