2023-12-23 01:57:24 -06:00
|
|
|
#![allow(incomplete_features)]
|
|
|
|
#![feature(non_lifetime_binders)]
|
|
|
|
|
|
|
|
type T = dyn for<V = A(&())> Fn(());
|
2024-01-01 12:29:27 -06:00
|
|
|
//~^ ERROR defaults for generic parameters are not allowed in `for<...>` binders
|
2023-12-23 01:57:24 -06:00
|
|
|
//~| ERROR cannot find type `A` in this scope
|
|
|
|
//~| ERROR late-bound type parameter not allowed on trait object types
|
|
|
|
|
|
|
|
fn main() {}
|