about summary refs log tree commit diff
path: root/tests/ui/impl-trait/trait_upcasting_reference_mismatch.stderr
blob: 92da47b08e9f16f040a2b7cddd0b82497b863f45 (plain)
1
2
3
4
5
6
7
8
9
error[E0282]: type annotations needed
  --> $DIR/trait_upcasting_reference_mismatch.rs:7:35
   |
LL | fn hello() -> &'static (dyn Trait<impl Sized> + Send) {
   |                                   ^^^^^^^^^^ cannot infer type

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0282`.