summaryrefslogtreecommitdiffstats
path: root/tests/ui/rust-2018/dyn-trait-compatibility.rs
blob: 377c85fef490a7d34a8b0077e87dee85d54208c8 (plain)
1
2
3
4
5
6
7
8
// 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() {}