rust/tests/ui/rust-2018/dyn-trait-compatibility.rs
2023-01-11 09:32:08 +00:00

9 lines
215 B
Rust

// edition:2018
type A0 = dyn;
type A1 = dyn::dyn; //~ERROR expected identifier, found keyword `dyn`
type A2 = dyn<dyn, dyn>; //~ERROR expected identifier, found `<`
type A3 = dyn<<dyn as dyn>::dyn>;
fn main() {}