|
| 1 | +error[E0425]: cannot find type `dyn` in this scope |
| 2 | + --> $DIR/dyn-2015-identifier.rs:7:11 |
| 3 | + | |
| 4 | +LL | type A0 = dyn; |
| 5 | + | ^^^ not found in this scope |
| 6 | + |
| 7 | +error[E0425]: cannot find type `dyn` in this scope |
| 8 | + --> $DIR/dyn-2015-identifier.rs:13:11 |
| 9 | + | |
| 10 | +LL | type A2 = dyn<dyn, dyn>; |
| 11 | + | ^^^ not found in this scope |
| 12 | + |
| 13 | +error[E0425]: cannot find type `dyn` in this scope |
| 14 | + --> $DIR/dyn-2015-identifier.rs:13:15 |
| 15 | + | |
| 16 | +LL | type A2 = dyn<dyn, dyn>; |
| 17 | + | ^^^ not found in this scope |
| 18 | + |
| 19 | +error[E0425]: cannot find type `dyn` in this scope |
| 20 | + --> $DIR/dyn-2015-identifier.rs:13:20 |
| 21 | + | |
| 22 | +LL | type A2 = dyn<dyn, dyn>; |
| 23 | + | ^^^ not found in this scope |
| 24 | + |
| 25 | +error[E0425]: cannot find type `dyn` in this scope |
| 26 | + --> $DIR/dyn-2015-identifier.rs:18:11 |
| 27 | + | |
| 28 | +LL | type A3 = dyn<<dyn as dyn>::dyn>; |
| 29 | + | ^^^ not found in this scope |
| 30 | + |
| 31 | +error[E0405]: cannot find trait `dyn` in this scope |
| 32 | + --> $DIR/dyn-2015-identifier.rs:18:23 |
| 33 | + | |
| 34 | +LL | type A3 = dyn<<dyn as dyn>::dyn>; |
| 35 | + | ^^^ not found in this scope |
| 36 | + |
| 37 | +error[E0425]: cannot find type `dyn` in this scope |
| 38 | + --> $DIR/dyn-2015-identifier.rs:18:16 |
| 39 | + | |
| 40 | +LL | type A3 = dyn<<dyn as dyn>::dyn>; |
| 41 | + | ^^^ not found in this scope |
| 42 | + |
| 43 | +error[E0405]: cannot find trait `dyn` in this scope |
| 44 | + --> $DIR/dyn-2015-identifier.rs:24:11 |
| 45 | + | |
| 46 | +LL | type A4 = dyn + dyn; |
| 47 | + | ^^^ not found in this scope |
| 48 | + |
| 49 | +error[E0405]: cannot find trait `dyn` in this scope |
| 50 | + --> $DIR/dyn-2015-identifier.rs:24:17 |
| 51 | + | |
| 52 | +LL | type A4 = dyn + dyn; |
| 53 | + | ^^^ not found in this scope |
| 54 | + |
| 55 | +warning: trait objects without an explicit `dyn` are deprecated |
| 56 | + --> $DIR/dyn-2015-identifier.rs:24:11 |
| 57 | + | |
| 58 | +LL | type A4 = dyn + dyn; |
| 59 | + | ^^^^^^^^^ |
| 60 | + | |
| 61 | + = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! |
| 62 | + = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html> |
| 63 | + = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default |
| 64 | +help: if this is a dyn-compatible trait, use `dyn` |
| 65 | + | |
| 66 | +LL | type A4 = dyn dyn + dyn; |
| 67 | + | +++ |
| 68 | + |
| 69 | +error[E0433]: cannot find module or crate `dyn` in this scope |
| 70 | + --> $DIR/dyn-2015-identifier.rs:10:11 |
| 71 | + | |
| 72 | +LL | type A1 = dyn::dyn; |
| 73 | + | ^^^ use of unresolved module or unlinked crate `dyn` |
| 74 | + | |
| 75 | + = help: you might be missing a crate named `dyn` |
| 76 | + |
| 77 | +error: aborting due to 10 previous errors; 1 warning emitted |
| 78 | + |
| 79 | +Some errors have detailed explanations: E0405, E0425, E0433. |
| 80 | +For more information about an error, try `rustc --explain E0405`. |
0 commit comments