You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fnmain(){let _v:Vec<i32> = [1].iter().map(|x| x.clone()).collect();// could use `*x` instead//~^ ERROR using `.clone()` on a double reference, which returns `&str`}
rustfmt --check
Diff in /tmp/rust/F/icemaker__/5AC1C74D9F9ECD84744150BA76CE5F6322EEB6FB856C15B133BBB855CBA6C3BC.rs at line 1:
fn main() {
let _v: Vec<i32> = [1].iter().map(|x| x.clone()).collect(); // could use `*x` instead
+
//~^ ERROR using `.clone()` on a double reference, which returns `&str`
}
error[internal]: left behind trailing whitespace
--> /tmp/rust/F/icemaker__/5AC1C74D9F9ECD84744150BA76CE5F6322EEB6FB856C15B133BBB855CBA6C3BC.rs:3:3:1
|
3 |
| ^^^^
|
warning: rustfmt has failed to format. See previous 1 errors.
The text was updated successfully, but these errors were encountered:
rustfmt --check
The text was updated successfully, but these errors were encountered: