]> git.lizzy.rs Git - rust.git/blob - src/test/ui/dyn-trait-compatibility.rs
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[rust.git] / src / test / ui / 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 type 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 use of undeclared type or module `dyn`
13
14 fn main() {}