]> git.proxmox.com Git - rustc.git/blob - src/test/ui/rust-2018/dyn-trait-compatibility.rs
Update upstream source from tag 'upstream/1.33.0+dfsg1'
[rustc.git] / src / test / ui / rust-2018 / dyn-trait-compatibility.rs
1 // edition:2018
2
3 type A0 = dyn;
4 type A1 = dyn::dyn; //~ERROR expected identifier, found keyword `dyn`
5 type A2 = dyn<dyn, dyn>; //~ERROR expected identifier, found `<`
6 type A3 = dyn<<dyn as dyn>::dyn>;
7
8 fn main() {}