]> git.proxmox.com Git - rustc.git/blame - src/test/ui/parser/dyn-trait-compatibility.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / parser / dyn-trait-compatibility.rs
CommitLineData
abe05a73
XL
1type A0 = dyn;
2//~^ ERROR cannot find type `dyn` in this scope
3type A1 = dyn::dyn;
1b1a35ee 4//~^ ERROR use of undeclared crate or module `dyn`
abe05a73
XL
5type 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
9type A3 = dyn<<dyn as dyn>::dyn>;
10//~^ ERROR cannot find type `dyn` in this scope
11//~| ERROR cannot find type `dyn` in this scope
1b1a35ee 12//~| ERROR use of undeclared crate or module `dyn`
abe05a73
XL
13
14fn main() {}