]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-61106.stderr
Merge commit '97e504549371d7640cf011d266e3c17394fdddac' into sync_cg_clif-2021-12-20
[rust.git] / src / test / ui / issues / issue-61106.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-61106.rs:3:9
3    |
4 LL |     foo(x.clone());
5    |         ^^^^^^^^^
6    |         |
7    |         expected `&str`, found struct `String`
8    |         help: consider borrowing here: `&x`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0308`.