]> git.proxmox.com Git - rustc.git/blob - tests/ui/parser/dyn-trait-compatibility.rs
New upstream version 1.70.0+dfsg1
[rustc.git] / tests / ui / parser / dyn-trait-compatibility.rs
1 type A0 = dyn;
2 //~^ ERROR cannot find type `dyn` in this scope
3 type A1 = dyn::dyn;
4 //~^ ERROR use of undeclared crate or module `dyn`
5 type A2 = dyn<dyn, dyn>;
6 //~^ ERROR cannot find type `dyn` in this scope
7 //~| ERROR cannot find type `dyn` in this scope
8 //~| ERROR cannot find type `dyn` in this scope
9 type A3 = dyn<<dyn as dyn>::dyn>;
10 //~^ ERROR cannot find type `dyn` in this scope
11 //~| ERROR cannot find type `dyn` in this scope
12 //~| ERROR cannot find trait `dyn` in this scope
13
14 fn main() {}