fork/rust

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

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

master
893 B19 linesraw
1error[E0271]: type mismatch resolving `<dyn Pointee<Metadata = ()> as Pointee>::Metadata == ()`
2  --> $DIR/ice-with-dyn-pointee-errors.rs:9:33
3   |
4LL |     unknown_sized_object_ptr_in(x)
5   |     --------------------------- ^ expected `()`, found `DynMetadata<dyn Pointee<Metadata = ...>>`
6   |     |
7   |     required by a bound introduced by this call
8   |
9   = note: expected unit type `()`
10                 found struct `DynMetadata<dyn Pointee<Metadata = ()>>`
11note: required by a bound in `unknown_sized_object_ptr_in`
12  --> $DIR/ice-with-dyn-pointee-errors.rs:6:50
13   |
14LL | fn unknown_sized_object_ptr_in(_: &(impl Pointee<Metadata = ()> + ?Sized)) {}
15   |                                                  ^^^^^^^^^^^^^ required by this bound in `unknown_sized_object_ptr_in`
16
17error: aborting due to previous error
18
19For more information about this error, try `rustc --explain E0271`.