]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-53692.stderr
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / issues / issue-53692.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-53692.rs:4:37
3    |
4 LL |         let items_clone: Vec<i32> = ref_items.clone();
5    |                                     ^^^^^^^^^^^^^^^^^
6    |                                     |
7    |                                     expected struct `std::vec::Vec`, found &[i32]
8    |                                     help: try using a conversion method: `ref_items.to_vec()`
9    |
10    = note: expected struct `std::vec::Vec<i32>`
11            found reference `&[i32]`
12
13 error[E0308]: mismatched types
14   --> $DIR/issue-53692.rs:11:30
15    |
16 LL |         let string: String = s.clone();
17    |                              ^^^^^^^^^
18    |                              |
19    |                              expected struct `std::string::String`, found &str
20    |                              help: try using a conversion method: `s.to_string()`
21
22 error: aborting due to 2 previous errors
23
24 For more information about this error, try `rustc --explain E0308`.