|
| 1 | +error[E0308]: `match` arms have incompatible types |
| 2 | + --> $DIR/multistep3.rs:75:18 |
| 3 | + | |
| 4 | +LL | |i| match i { |
| 5 | + | _____________- |
| 6 | +LL | | 0 => &Wrap3(Inner) as &I, |
| 7 | + | | ------------------------ this is found to be of type `&Wrap3<dyn Dynable + Send>` |
| 8 | +LL | | 1 => &Wrap3(Inner) as &J, |
| 9 | + | | ------------------------ this is found to be of type `&Wrap3<dyn Dynable + Send>` |
| 10 | +LL | | 2 => &Wrap3(Inner) as &K, |
| 11 | + | | ^^^^^^^^^^^^^^^^^^^^^^^^ expected trait `Dynable`, found trait `Dynable + Send` |
| 12 | +LL | | |
| 13 | +LL | | _ => loop {}, |
| 14 | +LL | | }.complete(), |
| 15 | + | |_________- `match` arms have incompatible types |
| 16 | + | |
| 17 | + = note: expected reference `&Wrap3<dyn Dynable + Send>` |
| 18 | + found reference `&Wrap3<(dyn Dynable + 'static)>` |
| 19 | + |
| 20 | +error[E0308]: `match` arms have incompatible types |
| 21 | + --> $DIR/multistep3.rs:90:18 |
| 22 | + | |
| 23 | +LL | |i| match i { |
| 24 | + | _____________- |
| 25 | +LL | | 0 => &Wrap3(Inner) as &I, |
| 26 | + | | ------------------------ this is found to be of type `&Wrap3<dyn Dynable>` |
| 27 | +LL | | 1 => &Wrap3(Inner) as &K, |
| 28 | + | | ------------------------ this is found to be of type `&Wrap3<dyn Dynable>` |
| 29 | +LL | | 2 => &Wrap3(Inner) as &J, |
| 30 | + | | ^^^^^^^^^^^^^^^^^^^^^^^^ expected trait `Dynable + Send`, found trait `Dynable` |
| 31 | +LL | | |
| 32 | +LL | | _ => loop {}, |
| 33 | +LL | | }.complete(), |
| 34 | + | |_________- `match` arms have incompatible types |
| 35 | + | |
| 36 | + = note: expected reference `&Wrap3<dyn Dynable>` |
| 37 | + found reference `&Wrap3<(dyn Dynable + Send + 'static)>` |
| 38 | + |
| 39 | +error: aborting due to 2 previous errors |
| 40 | + |
| 41 | +For more information about this error, try `rustc --explain E0308`. |
0 commit comments