about summary refs log tree commit diff
path: root/tests/ui/borrowck/borrowck-vec-pattern-nesting.rs
AgeCommit message (Collapse)AuthorLines
2025-04-08UI tests: add missing diagnostic kinds where possibleVadim Petrochenkov-1/+1
2024-04-11More move error suggestions to cloneEsteban Küber-0/+3
``` error[E0507]: cannot move out of `val`, a captured variable in an `FnMut` closure --> $DIR/issue-87456-point-to-closure.rs:10:28 | LL | let val = String::new(); | --- captured outer variable LL | LL | take_mut(|| { | -- captured by this `FnMut` closure LL | LL | let _foo: String = val; | ^^^ move occurs because `val` has type `String`, which does not implement the `Copy` trait | help: consider borrowing here | LL | let _foo: String = &val; | + help: consider cloning the value if the performance cost is acceptable | LL | let _foo: String = val.clone(); | ++++++++ ```
2023-05-25Remove DesugaringKind::Replace.Camille GILLOT-2/+0
2023-03-03Desugars drop and replace at MIR buildGiacomo Pasini-0/+2
This commit desugars the drop and replace deriving from an assignment at MIR build, avoiding the construction of the DropAndReplace terminator (which will be removed in a followign PR) In order to retain the same error messages for replaces a new DesugaringKind::Replace variant is introduced.
2023-01-15Tweak E0597Esteban Küber-4/+4
CC #99430
2023-01-11Move /src/test to /testsAlbert Larsan-0/+94