fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.1 KiB28 linesraw
1error[E0658]: `dyn*` trait objects are experimental
2  --> $DIR/no-explicit-dyn-star-cast.rs:5:16
3   |
4LL |     let dyn_i: dyn* Debug = i as dyn* Debug;
5   |                ^^^^
6   |
7   = note: see issue #102425 <https://github.com/rust-lang/rust/issues/102425> for more information
8   = help: add `#![feature(dyn_star)]` to the crate attributes to enable
9
10error[E0658]: `dyn*` trait objects are experimental
11  --> $DIR/no-explicit-dyn-star-cast.rs:5:34
12   |
13LL |     let dyn_i: dyn* Debug = i as dyn* Debug;
14   |                                  ^^^^
15   |
16   = note: see issue #102425 <https://github.com/rust-lang/rust/issues/102425> for more information
17   = help: add `#![feature(dyn_star)]` to the crate attributes to enable
18
19error[E0606]: casting `usize` as `dyn* Debug` is invalid
20  --> $DIR/no-explicit-dyn-star-cast.rs:5:29
21   |
22LL |     let dyn_i: dyn* Debug = i as dyn* Debug;
23   |                             ^^^^^^^^^^^^^^^
24
25error: aborting due to 3 previous errors
26
27Some errors have detailed explanations: E0606, E0658.
28For more information about an error, try `rustc --explain E0606`.