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
496 B
Rust
Raw Normal View History

2017-10-10 17:33:19 +03:00
type A0 = dyn;
//~^ ERROR cannot find type `dyn` in this scope
type A1 = dyn::dyn;
2020-08-27 13:27:14 +01:00
//~^ ERROR use of undeclared crate or module `dyn`
2017-10-10 17:33:19 +03: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
//~| ERROR cannot find trait `dyn` in this scope
2017-10-10 17:33:19 +03:00
fn main() {}