```
error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
--> $DIR/attempted-access-non-fatal.rs:7:15
|
LL | let _ = 2.l;
| ^
|
help: if intended to be a floating point literal, consider adding a `0` after the period and a `f64` suffix
|
LL - let _ = 2.l;
LL + let _ = 2.0f64;
|
```
19 lines
645 B
Plaintext
19 lines
645 B
Plaintext
error[E0499]: cannot borrow `arr[_]` as mutable more than once at a time
|
|
--> $DIR/suggest-slice-swap.rs:5:33
|
|
|
|
|
LL | std::mem::swap(&mut arr[0], &mut arr[1]);
|
|
| -------------- ----------- ^^^^^^^^^^^ second mutable borrow occurs here
|
|
| | |
|
|
| | first mutable borrow occurs here
|
|
| first borrow later used by call
|
|
|
|
|
help: use `.swap()` to swap elements at the specified indices instead
|
|
|
|
|
LL - std::mem::swap(&mut arr[0], &mut arr[1]);
|
|
LL + arr.swap(1, 0);
|
|
|
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0499`.
|