1 error[E0308]: mismatched types
2 --> $DIR/multiple-occurrence-ambiguousity.rs:20:26
4 LL | let t: &dyn Bar<_> = s;
5 | ----------- ^ expected trait `Bar`, found trait `Foo`
9 = note: expected reference `&dyn Bar<_>`
10 found reference `&dyn Foo`
12 error: aborting due to previous error
14 For more information about this error, try `rustc --explain E0308`.