2023-11-13 18:13:30 -06: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 22:43:31 -06:00
|
|
|
// Issue #118564
|
|
|
|
type A2 = dyn<for<> dyn>;
|
|
|
|
//~^ ERROR expected identifier, found `>`
|
|
|
|
|
2023-11-13 18:13:30 -06:00
|
|
|
fn main() {}
|