]> git.lizzy.rs Git - rust.git/blob - tests/ui/traits/new-solver/upcast-wrong-substs.stderr
Auto merge of #107498 - JohnTitor:rollup-2i6g4uk, r=JohnTitor
[rust.git] / tests / ui / traits / new-solver / upcast-wrong-substs.stderr
1 error[E0308]: mismatched types
2   --> $DIR/upcast-wrong-substs.rs:11:30
3    |
4 LL |     let y: &dyn Bar<usize> = x;
5    |            ---------------   ^ expected trait `Bar`, found trait `Foo`
6    |            |
7    |            expected due to this
8    |
9    = note: expected reference `&dyn Bar<usize>`
10               found reference `&dyn Foo`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0308`.