rust/tests/ui/rust-2018/dyn-trait-compatibility.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
215 B
Rust
Raw Normal View History

// edition:2018
type A0 = dyn;
2018-12-02 00:05:19 +00:00
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() {}