]> git.lizzy.rs Git - rust.git/blob - tests/ui/impl-trait/in-trait/issue-102571.stderr
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / tests / ui / impl-trait / in-trait / issue-102571.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-102571.rs:20:9
3    |
4 LL |     let () = t.bar();
5    |         ^^   ------- this expression has type `impl Deref<Target = impl std::fmt::Display + ?Sized>`
6    |         |
7    |         expected associated type, found `()`
8    |
9    = note: expected associated type `impl Deref<Target = impl std::fmt::Display + ?Sized>`
10                     found unit type `()`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0308`.