mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-16 06:42:22 +00:00
14 lines
297 B
Rust
14 lines
297 B
Rust
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
|
|
|
|
// Issue #118564
|
|
type A2 = dyn<for<> dyn>;
|
|
//~^ ERROR expected identifier, found `>`
|
|
|
|
fn main() {}
|