2023-12-14 06:11:28 -06:00
|
|
|
//@ compile-flags: -Znext-solver
|
2023-06-16 07:33:11 -05:00
|
|
|
|
|
|
|
trait Trait {
|
|
|
|
type Ty;
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Trait for for<'a> fn(&'a u8, &'a u8) {
|
|
|
|
type Ty = ();
|
|
|
|
}
|
|
|
|
|
|
|
|
// argument is necessary to create universes before registering the hidden type.
|
|
|
|
fn test<'a>(_: <fn(&u8, &u8) as Trait>::Ty) -> impl Sized {
|
2023-11-27 19:36:39 -06:00
|
|
|
//~^ ERROR the type `<for<'a, 'b> fn(&'a u8, &'b u8) as Trait>::Ty` is not well-formed
|
2023-06-16 07:33:11 -05:00
|
|
|
"hidden type is `&'?0 str` with '?0 member of ['static,]"
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|