fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
566 B16 linesraw
1error: `impl` item signature doesn't match `trait` item signature
2  --> $DIR/mismatched_trait_impl-2.rs:10:5
3   |
4LL |     fn deref(&self) -> &dyn Trait {
5   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ found fn(&Struct) -> &dyn Trait
6   | 
7  ::: $SRC_DIR/libcore/ops/deref.rs:LL:COL
8   |
9LL |     fn deref(&self) -> &Self::Target;
10   |     --------------------------------- expected fn(&Struct) -> &(dyn Trait + 'static)
11   |
12   = note: expected `fn(&Struct) -> &(dyn Trait + 'static)`
13              found `fn(&Struct) -> &dyn Trait`
14
15error: aborting due to previous error
16