Closed
Description
The following code should be accepted:
#![feature(generic_associated_types)]
trait X {
type Y<'a>;
}
fn f(x: Box<dyn X<Y<'a>=&'a ()>>) {}
// or perhaps:
// fn f(x: Box<dyn for<'a> X<Y<'a>=&'a ()>>) {}
fn g<T: X<Y<'a>=&'a ()>>() {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment