]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-61106.stderr
Rollup merge of #62337 - Mark-Simulacrum:fix-cpu-usage-script, r=alexcrichton
[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 `std::string::String`
8    |         help: consider borrowing here: `&x`
9    |
10    = note: expected type `&str`
11               found type `std::string::String`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0308`.