1 error[E0308]: mismatched types
2 --> $DIR/upcast-wrong-substs.rs:11:30
4 LL | let y: &dyn Bar<usize> = x;
5 | --------------- ^ expected trait `Bar`, found trait `Foo`
9 = note: expected reference `&dyn Bar<usize>`
10 found reference `&dyn Foo`
12 error: aborting due to previous error
14 For more information about this error, try `rustc --explain E0308`.