2023-11-14 00:13:30 +00:00
|
|
|
trait Trait {}
|
|
|
|
|
|
|
|
fn test(_: &for<'a> dyn Trait) {}
|
|
|
|
//~^ ERROR `for<...>` expected after `dyn`, not before
|
|
|
|
|
|
|
|
fn test2(_: for<'a> impl Trait) {}
|
|
|
|
//~^ ERROR `for<...>` expected after `impl`, not before
|
|
|
|
|
2023-12-03 20:43:31 -08:00
|
|
|
// Issue #118564
|
|
|
|
type A2 = dyn<for<> dyn>;
|
|
|
|
//~^ ERROR expected identifier, found `>`
|
|
|
|
|
2023-11-14 00:13:30 +00:00
|
|
|
fn main() {}
|