mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 05:34:45 +00:00

These tests specifically test 2015 edition behavior, so ensure that they can only be run with this edition
55 lines
1.7 KiB
Plaintext
55 lines
1.7 KiB
Plaintext
error[E0412]: cannot find type `dyn` in this scope
|
|
--> $DIR/dyn-trait-compatibility.rs:3:11
|
|
|
|
|
LL | type A0 = dyn;
|
|
| ^^^ not found in this scope
|
|
|
|
error[E0412]: cannot find type `dyn` in this scope
|
|
--> $DIR/dyn-trait-compatibility.rs:7:11
|
|
|
|
|
LL | type A2 = dyn<dyn, dyn>;
|
|
| ^^^ not found in this scope
|
|
|
|
error[E0412]: cannot find type `dyn` in this scope
|
|
--> $DIR/dyn-trait-compatibility.rs:7:15
|
|
|
|
|
LL | type A2 = dyn<dyn, dyn>;
|
|
| ^^^ not found in this scope
|
|
|
|
error[E0412]: cannot find type `dyn` in this scope
|
|
--> $DIR/dyn-trait-compatibility.rs:7:20
|
|
|
|
|
LL | type A2 = dyn<dyn, dyn>;
|
|
| ^^^ not found in this scope
|
|
|
|
error[E0412]: cannot find type `dyn` in this scope
|
|
--> $DIR/dyn-trait-compatibility.rs:11:11
|
|
|
|
|
LL | type A3 = dyn<<dyn as dyn>::dyn>;
|
|
| ^^^ not found in this scope
|
|
|
|
error[E0405]: cannot find trait `dyn` in this scope
|
|
--> $DIR/dyn-trait-compatibility.rs:11:23
|
|
|
|
|
LL | type A3 = dyn<<dyn as dyn>::dyn>;
|
|
| ^^^ not found in this scope
|
|
|
|
error[E0412]: cannot find type `dyn` in this scope
|
|
--> $DIR/dyn-trait-compatibility.rs:11:16
|
|
|
|
|
LL | type A3 = dyn<<dyn as dyn>::dyn>;
|
|
| ^^^ not found in this scope
|
|
|
|
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `dyn`
|
|
--> $DIR/dyn-trait-compatibility.rs:5:11
|
|
|
|
|
LL | type A1 = dyn::dyn;
|
|
| ^^^ use of unresolved module or unlinked crate `dyn`
|
|
|
|
|
= help: you might be missing a crate named `dyn`
|
|
|
|
error: aborting due to 8 previous errors
|
|
|
|
Some errors have detailed explanations: E0405, E0412, E0433.
|
|
For more information about an error, try `rustc --explain E0405`.
|