rust/tests/ui/parser/dyn-trait-compatibility.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
498 B
Rust
Raw Normal View History

2017-10-10 09:33:19 -05:00
type A0 = dyn;
//~^ ERROR cannot find type `dyn` in this scope
type A1 = dyn::dyn;
2020-08-27 07:27:14 -05:00
//~^ ERROR use of undeclared crate or module `dyn`
2017-10-10 09:33:19 -05:00
type A2 = dyn<dyn, dyn>;
//~^ ERROR cannot find type `dyn` in this scope
//~| ERROR cannot find type `dyn` in this scope
//~| ERROR cannot find type `dyn` in this scope
type A3 = dyn<<dyn as dyn>::dyn>;
//~^ ERROR cannot find type `dyn` in this scope
//~| ERROR cannot find type `dyn` in this scope
2020-08-27 07:27:14 -05:00
//~| ERROR use of undeclared crate or module `dyn`
2017-10-10 09:33:19 -05:00
fn main() {}