mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-04 11:17:04 +00:00

These tests specifically test 2015 edition behavior, so ensure that they can only be run with this edition
12 lines
263 B
Rust
12 lines
263 B
Rust
// Regression test for #85794
|
|
//@ edition: 2015
|
|
|
|
struct Baz {
|
|
inner : dyn fn ()
|
|
//~^ ERROR expected `,`, or `}`, found keyword `fn`
|
|
//~| ERROR expected identifier, found keyword `fn`
|
|
//~| ERROR cannot find type `dyn` in this scope
|
|
}
|
|
|
|
fn main() {}
|