summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/new-solver/upcast-wrong-substs.stderr
blob: 8623f395f5978e8b71d29571f623a2203bc86870 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0308]: mismatched types
  --> $DIR/upcast-wrong-substs.rs:11:30
   |
LL |     let y: &dyn Bar<usize> = x;
   |            ---------------   ^ expected trait `Bar`, found trait `Foo`
   |            |
   |            expected due to this
   |
   = note: expected reference `&dyn Bar<usize>`
              found reference `&dyn Foo`

error: aborting due to previous error

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