mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
10 lines
211 B
Rust
10 lines
211 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
|
|
|
|
fn main() {}
|