fork/rust

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

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

master
838 B23 linesraw
1warning: the feature `dyn_star` is incomplete and may not be safe to use and/or cause compiler crashes
2  --> $DIR/no-unsize-coerce-dyn-trait.rs:1:12
3   |
4LL | #![feature(dyn_star, trait_upcasting)]
5   |            ^^^^^^^^
6   |
7   = note: see issue #102425 <https://github.com/rust-lang/rust/issues/102425> for more information
8   = note: `#[warn(incomplete_features)]` on by default
9
10error[E0308]: mismatched types
11  --> $DIR/no-unsize-coerce-dyn-trait.rs:11:26
12   |
13LL |     let y: Box<dyn* B> = x;
14   |            -----------   ^ expected trait `B`, found trait `A`
15   |            |
16   |            expected due to this
17   |
18   = note: expected struct `Box<dyn* B>`
19              found struct `Box<dyn* A>`
20
21error: aborting due to previous error; 1 warning emitted
22
23For more information about this error, try `rustc --explain E0308`.