]> git.lizzy.rs Git - rust.git/blob - tests/ui/traits/trait-upcasting/multiple-occurrence-ambiguousity.stderr
Rollup merge of #103702 - WaffleLapkin:lift-sized-bounds-from-pointer-methods-where...
[rust.git] / tests / ui / traits / trait-upcasting / multiple-occurrence-ambiguousity.stderr
1 error[E0308]: mismatched types
2   --> $DIR/multiple-occurrence-ambiguousity.rs:20:26
3    |
4 LL |     let t: &dyn Bar<_> = s;
5    |            -----------   ^ expected trait `Bar`, found trait `Foo`
6    |            |
7    |            expected due to this
8    |
9    = note: expected reference `&dyn Bar<_>`
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`.